/*
Theme Name: Xoai Wordpress
Theme URI: https://example.com/
Description: Block-editor theme for WordPress studios. Light Gutenberg-inspired interface, WordPress blueberry blue with a mango accent, an editor-style top bar, a hero editor mockup with list view and a selected block, inserter-style service cards with slash commands and Core Web Vitals score rings. WooCommerce service packages.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.0
Author: WPTPL
Text Domain: wptpl-wordpress-01
License: GPLv2 or later
*/

:root {
	--wb-white: var(--wp--preset--color--white);
	--wb-canvas: var(--wp--preset--color--canvas);
	--wb-frame: var(--wp--preset--color--frame);
	--wb-ink: var(--wp--preset--color--ink);
	--wb-gray: var(--wp--preset--color--gray);
	--wb-line: var(--wp--preset--color--line);
	--wb-blue: var(--wp--preset--color--blueberry);
	--wb-blue-dk: var(--wp--preset--color--blueberry-dark);
	--wb-mango: var(--wp--preset--color--mango);
	--wb-mint: var(--wp--preset--color--mint);
	--wb-display: var(--wp--preset--font-family--display);
	--wb-mono: var(--wp--preset--font-family--mono);
	--wb-r: 12px;
	--wb-ease: cubic-bezier(.2, .8, .2, 1);
	--wb-shadow: 0 1px 2px rgba(30, 30, 30, .06), 0 12px 32px -16px rgba(30, 30, 30, .22);
	--wptpl-theme-radius: 8px;
}

body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: rgba(56, 88, 233, .18); }
.wp-site-blocks { overflow-x: clip; }

/* ---------- reveal ---------- */
.wb-js .wb-reveal, .wb-js .wptpl-service, .wb-js .is-style-card { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--wb-ease), transform .6s var(--wb-ease), box-shadow .3s, border-color .3s; }
.wb-js .wb-reveal.is-in, .wb-js .wptpl-service.is-in, .wb-js .is-style-card.is-in { opacity: 1; transform: none; }

/* ---------- helpers ---------- */
.is-style-slash { display: inline-block; margin: 0 0 1rem; padding: .3rem .6rem; border-radius: 6px; background: rgba(56, 88, 233, .08); color: var(--wb-blue); font-family: var(--wb-mono); font-size: .8rem; }
.wb-hl { background: linear-gradient(transparent 62%, rgba(255, 176, 32, .55) 62%, rgba(255, 176, 32, .55) 92%, transparent 92%); padding: 0 .05em; }
.wb-select { position: relative; display: inline-block; padding: 0 .12em; outline: 2px solid var(--wb-blue); outline-offset: 4px; border-radius: 2px; color: var(--wb-blue); white-space: nowrap; }
.wb-select::after { content: ""; position: absolute; right: -10px; bottom: -10px; width: 10px; height: 10px; background: var(--wb-blue); border: 2px solid var(--wb-white); border-radius: 50%; }
.wb-pill { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.75rem !important; padding: .3rem .85rem .3rem .3rem; border: 1px solid var(--wb-line); border-radius: 999px; font-size: var(--wp--preset--font-size--small); color: var(--wb-gray); background: var(--wb-white); }
.wb-pill span { padding: .2rem .55rem; border-radius: 999px; background: var(--wb-blue); color: var(--wb-white); font-size: .75rem; font-weight: 600; }
.wb-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--wb-mint); box-shadow: 0 0 0 3px rgba(0, 163, 42, .18); margin-right: .5rem; }
.wb-link { margin: 0; font-weight: 600; }
.wb-link a { text-decoration: none; }
.wb-inline a { word-break: break-all; text-decoration: underline; }
.wb-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: var(--wp--preset--font-size--small); color: var(--wb-gray); }
.wb-checks li { display: inline-flex; align-items: center; gap: .45rem; }
.wb-checks li::before { content: "✓"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 163, 42, .12); color: var(--wb-mint); font-size: .7rem; font-weight: 700; }

/* logo: 2x2 blocks */
.wb-logo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 28px; height: 28px; flex: none; transition: transform .4s var(--wb-ease); }
.wb-logo i { border-radius: 3px; background: var(--wb-ink); }
.wb-logo i:nth-child(2) { background: var(--wb-blue); }
.wb-logo i:nth-child(3) { background: var(--wb-mango); border-radius: 50%; }
.wb-brand:hover .wb-logo { transform: rotate(90deg); }

/* framed image (browser chrome) */
.is-style-framed, .wb-frame .wp-block-post-featured-image, .wptpl-service__media { position: relative; margin: 0; padding-top: 28px; border-radius: var(--wb-r); overflow: hidden; background: var(--wb-frame); border: 1px solid var(--wb-line); }
.is-style-framed::before, .wb-frame .wp-block-post-featured-image::before, .wptpl-service__media::before { content: ""; position: absolute; left: 12px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #FF5F57; box-shadow: 13px 0 0 #FEBC2E, 26px 0 0 #28C840; z-index: 1; }
.is-style-framed img, .wb-frame img, .wptpl-service__media img { width: 100%; border-radius: 0; }

/* ---------- buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: background .2s, color .2s, box-shadow .2s, transform .2s var(--wb-ease); }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-secondary .wp-block-button__link { background: var(--wb-white); color: var(--wb-blue); box-shadow: inset 0 0 0 1px var(--wb-blue); }
.wp-block-button.is-style-secondary .wp-block-button__link:hover { background: rgba(56, 88, 233, .06); color: var(--wb-blue-dk); }

/* ---------- header ---------- */
.wb-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--wb-line); }
.admin-bar .wb-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .wb-header { top: 46px; } }
.wb-header.is-scrolled { box-shadow: 0 6px 20px -14px rgba(30, 30, 30, .35); }
.wb-header__bar { padding: .8rem 0; gap: 1.5rem; }
.wb-brand { gap: .65rem; align-items: center; }
.wb-brand .wp-block-site-title { margin: 0; white-space: nowrap; }
.wb-brand .wp-block-site-title a { text-decoration: none; }
.wb-nav .wp-block-navigation__container { gap: .25rem; }
.wb-nav .wp-block-navigation-item__content { padding: .45rem .75rem !important; border-radius: 6px; color: var(--wb-ink); transition: background .2s, color .2s; }
.wb-nav .wp-block-navigation-item__content:hover { background: var(--wb-canvas); }
.wb-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wb-blue); background: rgba(56, 88, 233, .08); }
.wb-header__right { gap: .75rem; align-items: center; }
.wb-header__status { margin: 0; font-size: .8rem; color: var(--wb-gray); white-space: nowrap; }
.wb-header__cta .wp-block-button__link { padding: .7rem 1rem; }
.wb-header .wc-block-mini-cart__button { color: var(--wb-ink); padding: .5rem; }
.wb-header .wc-block-mini-cart__badge { background: var(--wb-mango); color: var(--wb-ink); }
.wb-header .wp-block-woocommerce-customer-account { display: none; }
.wc-block-mini-cart[aria-hidden="true"] { display: none !important; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: .25rem !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-family: var(--wb-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; padding: .25rem 0 !important; background: none !important; }
@media (max-width: 1180px) { .wb-header__status { display: none !important; } }
@media (max-width: 600px) { .wb-header__cta { display: none !important; } }

/* ---------- page heads / sections ---------- */
.wb-main { padding-bottom: var(--wp--preset--spacing--60); }
.wb-pagehead { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 4vw, 3rem); margin-bottom: clamp(2rem, 5vw, 3.5rem) !important; border-bottom: 1px solid var(--wb-line); }
.wb-pagehead--split { display: grid; gap: 1.25rem; }
.wb-pagehead--split > * { min-width: 0; }
@media (min-width: 960px) { .wb-pagehead--split { grid-template-columns: 1.4fr 1fr; align-items: end; gap: 4rem; } }
.wb-pagehead > *, .wb-pagehead--split > * > * { margin-block: 0; }
.wb-pagehead--split > * > .is-style-slash { margin-bottom: 1rem; }
.wb-pagehead__title, .wb-pagehead .wp-block-post-title, .wb-pagehead .wp-block-query-title { font-size: clamp(2.4rem, 5.5vw, 4.25rem) !important; line-height: 1.02; letter-spacing: -.045em; font-weight: 800; margin: 0; }
.wb-pagehead__lede { font-size: var(--wp--preset--font-size--large); color: var(--wb-gray); max-width: 42ch; }
body.blog .wb-pagehead .wp-block-query-title:empty, body:not(.blog) .wb-only-home { display: none; }
.wb-section { margin-top: var(--wp--preset--spacing--60) !important; }
.wb-section > h2, .wb-section__head h2, .wb-vitals h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -.04em; font-weight: 800; margin: 0 0 2.25rem; max-width: 22ch; }
.wb-section__head { margin-bottom: 2.25rem; gap: 1.5rem; }
.wb-section__head > *, .wb-section__head h2 { margin: 0; }

/* ---------- hero ---------- */
.wb-hero { display: grid; gap: 3rem; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .wb-hero { grid-template-columns: 1fr 1.08fr; gap: 3.5rem; } }
.wb-hero > * { margin: 0 !important; min-width: 0; }
.wb-hero__copy > * { margin-block: 0 1.5rem; }
.wb-hero__title { font-size: var(--wp--preset--font-size--display) !important; line-height: 1.02; letter-spacing: -.05em; font-weight: 800; margin-top: .5rem !important; }
.wb-hero__lede { font-size: var(--wp--preset--font-size--large); color: var(--wb-gray); max-width: 46ch; }
.wb-hero__actions { gap: .6rem; }
.wb-hero__copy .wb-checks { margin-top: 2rem !important; padding-top: 1.25rem; border-top: 1px solid var(--wb-line); }

/* editor mockup */
.wb-editor { position: relative; border-radius: 14px; background: var(--wb-white); border: 1px solid var(--wb-line); box-shadow: 0 30px 70px -30px rgba(33, 63, 212, .35), var(--wb-shadow); font-size: .8rem; }
.wb-editor__bar { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-bottom: 1px solid var(--wb-line); }
.wb-editor__w { width: 26px; height: 26px; border-radius: 4px; background: var(--wb-ink); position: relative; }
.wb-editor__w::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid var(--wb-white); }
.wb-editor__plus { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; background: var(--wb-blue); color: var(--wb-white); font-size: 1.1rem; }
.wb-editor__doc { flex: 1; text-align: center; padding: .3rem; border-radius: 4px; background: var(--wb-canvas); color: var(--wb-gray); }
.wb-editor__save { color: var(--wb-gray); }
.wb-editor__pub { padding: .4rem .7rem; border-radius: 3px; background: var(--wb-blue); color: var(--wb-white); font-weight: 600; }
.wb-editor__body { display: grid; grid-template-columns: 150px 1fr; min-height: 340px; }
.wb-editor__list { display: flex; flex-direction: column; gap: .15rem; padding: .85rem .6rem; border-right: 1px solid var(--wb-line); color: var(--wb-gray); }
.wb-editor__list b { color: var(--wb-ink); margin-bottom: .4rem; font-weight: 600; }
.wb-editor__list span { padding: .3rem .4rem; border-radius: 3px; white-space: nowrap; }
.wb-editor__list .i1 { padding-left: 1rem; }
.wb-editor__list .i2 { padding-left: 1.7rem; }
.wb-editor__list .is-on { background: var(--wb-blue); color: var(--wb-white); }
.wb-editor__canvas { position: relative; padding: 1rem; background: var(--wb-canvas); display: flex; flex-direction: column; gap: .75rem; }
.wb-editor__cover { border-radius: 6px; overflow: hidden; }
.wb-editor__cover img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.wb-editor__block { position: relative; padding: .55rem .6rem; outline: 2px solid var(--wb-blue); border-radius: 2px; background: var(--wb-white); font-family: var(--wb-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; margin-top: 2.2rem; }
.wb-editor__block::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -.15em; background: var(--wb-blue); animation: wb-caret 1s steps(1) infinite; }
@keyframes wb-caret { 50% { opacity: 0; } }
.wb-editor__tools { position: absolute; left: -2px; top: -2.35rem; display: flex; border: 1px solid var(--wb-ink); border-radius: 3px; background: var(--wb-white); font-family: var(--wb-mono); font-size: .75rem; font-weight: 400; letter-spacing: 0; }
.wb-editor__tools i { font-style: normal; padding: .35rem .55rem; border-right: 1px solid var(--wb-line); }
.wb-editor__tools i:last-child { border: 0; }
.wb-editor__tag { position: absolute; right: -2px; bottom: calc(100% + 2px); padding: .15rem .4rem; background: var(--wb-blue); color: var(--wb-white); font-family: var(--wb-mono); font-size: .65rem; font-weight: 400; letter-spacing: 0; border-radius: 2px 2px 0 0; }
.wb-editor__lines { display: grid; gap: .4rem; }
.wb-editor__lines i { height: 7px; border-radius: 4px; background: var(--wb-line); }
.wb-editor__lines i:nth-child(2) { width: 88%; }
.wb-editor__lines i:nth-child(3) { width: 62%; }
.wb-editor__btns { display: flex; gap: .5rem; }
.wb-editor__btns i { width: 86px; height: 26px; border-radius: 4px; background: var(--wb-ink); }
.wb-editor__btns i + i { background: transparent; box-shadow: inset 0 0 0 1px var(--wb-ink); }
.wb-editor__add { position: absolute; right: 1rem; bottom: 1rem; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; background: var(--wb-ink); color: var(--wb-white); font-size: 1.15rem; }
.wb-editor__toast { position: absolute; left: -1.25rem; bottom: -1.1rem; display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: 6px; background: var(--wb-ink); color: var(--wb-white); font-size: .85rem; box-shadow: var(--wb-shadow); animation: wb-toast 5s var(--wb-ease) infinite; }
.wb-editor__toast span { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--wb-mint); font-size: .65rem; }
@keyframes wb-toast { 0%, 8% { opacity: 0; transform: translateY(8px); } 14%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(8px); } }
@media (max-width: 640px) {
	.wb-editor__body { grid-template-columns: 1fr; }
	.wb-editor__list { display: none; }
	.wb-editor__save { display: none; }
	.wb-editor__toast { left: .75rem; }
}
@media (prefers-reduced-motion: reduce) { .wb-editor__toast, .wb-editor__block::after { animation: none; } }

/* stack strip */
.wb-stack { margin-top: 1rem !important; padding: 1.25rem 0; border-top: 1px solid var(--wb-line); border-bottom: 1px solid var(--wb-line); gap: .75rem 2rem; align-items: center; }
.wb-stack > * { margin: 0 !important; }
.wb-stack__label { font-family: var(--wb-mono); font-size: .75rem; color: var(--wb-gray); text-transform: uppercase; letter-spacing: .08em; }
.wb-stack__item { font-family: var(--wb-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; color: #8C8F94; transition: color .2s; }
.wb-stack__item:hover { color: var(--wb-ink); }

/* ---------- services ---------- */
.wptpl-services { display: grid; gap: 1rem; }
.wptpl-services--grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .wptpl-services--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .wptpl-services--grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.wptpl-service { position: relative; display: flex; flex-direction: column; background: var(--wb-white); border: 1px solid var(--wb-line); border-radius: var(--wb-r); transition: border-color .25s, box-shadow .25s, transform .25s var(--wb-ease); }
.wptpl-service:hover, .wb-js .wptpl-service.is-in:hover { border-color: var(--wb-blue); box-shadow: 0 0 0 1px var(--wb-blue), var(--wb-shadow); transform: translateY(-3px); }
.wptpl-service__body { padding: 1.35rem; display: flex; flex-direction: column; flex: 1; }
.wptpl-service__meta { margin: 0 0 .8rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-family: var(--wb-mono); font-size: .72rem; color: var(--wb-gray); }
.wptpl-service__num { color: var(--wb-blue); }
.wptpl-service__num::before { content: "block-"; }
.wptpl-service__cat { padding: .15rem .45rem; border-radius: 4px; background: var(--wb-canvas); }
.wptpl-service__title { margin: 0 0 .45rem; font-size: 1.2rem; letter-spacing: -.025em; line-height: 1.2; font-weight: 700; }
.wptpl-service__title a { color: var(--wb-ink); }
.wptpl-service__title a::after { content: ""; position: absolute; inset: 0; }
.wptpl-service__excerpt { color: var(--wb-gray); font-size: var(--wp--preset--font-size--small); line-height: 1.55; }
.wptpl-service__excerpt p { margin: 0; }
.wptpl-service__foot { margin-top: auto; padding-top: 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; position: relative; z-index: 1; }
.wptpl-service__price { font-family: var(--wb-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.wptpl-service__price del { font-size: .55em; color: var(--wb-gray); font-weight: 500; margin-right: .3rem; }
.wptpl-service__price ins { text-decoration: none; }
.wptpl-service__cta { flex: none; padding: .65rem .9rem; border-radius: 4px; background: var(--wb-white); color: var(--wb-blue); box-shadow: inset 0 0 0 1px var(--wb-blue); font-size: .82rem; font-weight: 600; text-decoration: none; }
.wptpl-service__cta:hover, .wptpl-service:hover .wptpl-service__cta { background: var(--wb-blue); color: var(--wb-white); }
/* inserter cards (no image) */
.wptpl-services--grid { counter-reset: blk; }
.wptpl-service { counter-increment: blk; }
.wptpl-service:not(:has(.wptpl-service__media))::before { content: "+"; display: grid; place-items: center; width: 42px; height: 42px; margin: 1.35rem 1.35rem 0; border-radius: 8px; background: var(--wb-canvas); color: var(--wb-blue); font-family: var(--wb-display); font-size: 1.4rem; font-weight: 700; transition: background .25s, color .25s; }
.wptpl-service:nth-child(4n+2):not(:has(.wptpl-service__media))::before { content: "⚡"; }
.wptpl-service:nth-child(4n+3):not(:has(.wptpl-service__media))::before { content: "⌘"; }
.wptpl-service:nth-child(4n+4):not(:has(.wptpl-service__media))::before { content: "¶"; }
.wptpl-service:hover:not(:has(.wptpl-service__media))::before { background: var(--wb-blue); color: var(--wb-white); }
.wptpl-service.is-featured:not(:has(.wptpl-service__media))::after { content: "Popular"; position: absolute; top: 1.6rem; right: 1.35rem; padding: .2rem .5rem; border-radius: 999px; background: var(--wb-mango); font-size: .7rem; font-weight: 700; }
/* plugin-style cards (with image) */
.wptpl-service__media { margin: .6rem .6rem 0; }
.wptpl-service__media img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--wb-ease); }
.wptpl-service:hover .wptpl-service__media img { transform: scale(1.03); }
.wptpl-service.is-featured:has(.wptpl-service__media) .wptpl-service__meta::after { content: "Popular"; order: 3; padding: .15rem .5rem; border-radius: 999px; background: var(--wb-mango); color: var(--wb-ink); font-family: var(--wp--preset--font-family--body); font-weight: 700; }
.wptpl-service:has(.wptpl-service__media) .wptpl-service__meta::before { content: "/" counter(blk, decimal-leading-zero); color: var(--wb-blue); }
.wptpl-service:has(.wptpl-service__media) .wptpl-service__cat { margin-right: auto; }

/* ---------- vitals ---------- */
.wb-vitals { display: grid; gap: 2.5rem; align-items: center; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 20px; background: var(--wb-canvas); }
@media (min-width: 960px) { .wb-vitals { grid-template-columns: 1fr 1.1fr; gap: 4rem; } }
.wb-vitals > * { margin: 0 !important; min-width: 0; }
.wb-vitals__copy > * { margin-block: 0 1.1rem; }
.wb-vitals__copy > p:not(.is-style-slash):not(.wb-link) { color: var(--wb-gray); }
.wb-scores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; padding: 2rem 1.5rem; border-radius: var(--wb-r); background: var(--wb-white); border: 1px solid var(--wb-line); }
@media (min-width: 560px) { .wb-scores { grid-template-columns: repeat(4, 1fr); } }
.wb-score { display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; }
.wb-score__ring { --p: var(--v); display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(closest-side, var(--wb-white) 82%, transparent 83%), conic-gradient(#0C9D4E calc(var(--p) * 1%), rgba(12, 157, 78, .14) 0); }
.wb-js .wb-score .wb-score__ring { --p: 0; transition: --p 1.2s var(--wb-ease); }
.wb-js .wb-score.is-in .wb-score__ring { --p: var(--v); }
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.wb-score__num { font-family: var(--wb-display); font-size: 1.8rem; font-weight: 800; color: #0C7A3C; letter-spacing: -.03em; }
.wb-score__label { font-size: .85rem; font-weight: 600; }
.wb-scores__note { grid-column: 1 / -1; margin: .5rem 0 0; text-align: center; font-family: var(--wb-mono); font-size: .72rem; color: var(--wb-gray); }

/* ---------- duo ---------- */
.wb-duo { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .wb-duo { grid-template-columns: 1fr 1fr; } }
.wb-duo > * { margin: 0 !important; }
.is-style-card { background: var(--wb-white); border: 1px solid var(--wb-line); border-radius: var(--wb-r); padding: clamp(1.4rem, 3vw, 2rem); }
.is-style-card > * { margin-block: 0 1rem; }
.is-style-card > *:last-child { margin-bottom: 0; }
.wb-duo__card { padding: clamp(1.75rem, 4vw, 2.75rem); }
.wb-duo__card h3 { font-size: clamp(1.6rem, 3vw, 2.2rem) !important; letter-spacing: -.04em; }
.wb-duo__card > p:not(.wb-duo__icon) { color: var(--wb-gray); max-width: 46ch; }
.wb-duo__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; background: var(--wb-ink); color: var(--wb-white); font-size: 1.6rem; font-weight: 700; }
.wb-duo__card--blue { background: var(--wb-blue); border-color: var(--wb-blue); color: var(--wb-white); }
.wb-duo__card--blue > p:not(.wb-duo__icon) { color: rgba(255, 255, 255, .82) !important; }
.wb-duo__card--blue .wb-duo__icon { background: var(--wb-mango); color: var(--wb-ink); }
.wb-duo__card--blue .wb-checks { color: var(--wb-white); }
.wb-duo__card--blue .wb-checks li::before { background: rgba(255, 255, 255, .2); color: var(--wb-white); }
.wb-duo .wb-checks { flex-direction: column; }

/* ---------- workflow ---------- */
.wb-flow { display: grid; gap: 1rem; }
@media (min-width: 700px) { .wb-flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .wb-flow { grid-template-columns: repeat(4, 1fr); } }
.wb-flow > * { margin: 0 !important; }
.wb-flow__step { position: relative; padding: 1.5rem; border: 1px solid var(--wb-line); border-radius: var(--wb-r); }
@media (min-width: 1060px) { .wb-flow__step:not(:last-child)::after { content: "→"; position: absolute; right: -.85rem; top: 1.55rem; z-index: 1; width: 1.5rem; text-align: center; background: var(--wb-white); color: var(--wb-gray); } }
.wb-flow__step > * { margin-block: 0 .6rem; }
.wb-flow__step h3 { font-size: 1.35rem !important; letter-spacing: -.03em; }
.wb-flow__step p:last-child { color: var(--wb-gray); font-size: var(--wp--preset--font-size--small); margin: 0; }
.wb-status { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--wb-canvas); color: var(--wb-gray); }
.wb-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wb-status--review { background: #FCF9E8; color: #996800; }
.wb-status--scheduled { background: rgba(56, 88, 233, .08); color: var(--wb-blue); }
.wb-status--published { background: rgba(0, 163, 42, .1); color: #008A20; }

/* ---------- comments ---------- */
.wb-comments { display: grid; gap: 1rem; }
@media (min-width: 900px) { .wb-comments { grid-template-columns: repeat(3, 1fr); } }
.wb-comments > * { margin: 0 !important; }
.wb-comment > p:last-child { color: #3C434A; }
.wb-comment__who { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--wb-gray); }
.wb-comment__who strong { color: var(--wb-ink); }
.wb-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--wb-blue); color: var(--wb-white); font-size: .8rem; font-weight: 700; flex: none; }
.wb-avatar--b { background: var(--wb-mango); color: var(--wb-ink); }
.wb-avatar--c { background: var(--wb-ink); }

/* ---------- about ---------- */
.wb-about { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .wb-about { grid-template-columns: 1fr 1.1fr; gap: 4.5rem; } }
.wb-about > * { margin: 0 !important; }
.wb-about__img img { aspect-ratio: 5 / 4; object-fit: cover; }
.wb-about__text h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); letter-spacing: -.04em; }
.wb-prose > * + * { margin-top: 1.1rem; }
.wb-prose p { color: #3C434A; }
.wb-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: var(--wp--preset--spacing--60) !important; }
@media (min-width: 900px) { .wb-stats { grid-template-columns: repeat(4, 1fr); } }
.wb-stat { padding: 1.5rem; border-radius: var(--wb-r); background: var(--wb-canvas); display: flex; flex-direction: column; gap: .35rem; }
.wb-stat b { font-family: var(--wb-display); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -.045em; line-height: 1; color: var(--wb-blue); }
.wb-stat span { color: var(--wb-gray); font-size: .9rem; }
.wb-principles { display: grid; gap: 1rem; }
@media (min-width: 700px) { .wb-principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .wb-principles { grid-template-columns: repeat(4, 1fr); } }
.wb-principles > * { margin: 0 !important; }
.wb-principle__code { font-family: var(--wb-mono); font-size: .8rem; color: var(--wb-blue); }
.wb-principle h3 { font-size: 1.3rem !important; letter-spacing: -.03em; }
.wb-principle p:last-child { color: var(--wb-gray); }

/* ---------- work ---------- */
.wb-cases { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .wb-cases { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .wb-cases { grid-template-columns: repeat(3, 1fr); } }
.wb-cases > * { margin: 0 !important; }
.wb-case { padding: .6rem .6rem 1.5rem; }
.wb-case > *:not(figure) { padding-inline: .9rem; }
.wb-case img { aspect-ratio: 16 / 10; object-fit: cover; }
.wb-case h3 { font-size: 1.3rem !important; letter-spacing: -.03em; }
.wb-case > p:last-child { color: var(--wb-gray); font-size: var(--wp--preset--font-size--small); }
.wb-case__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem !important; }
.wb-case__tags span { padding: .15rem .5rem; border-radius: 4px; background: rgba(56, 88, 233, .08); color: var(--wb-blue); font-family: var(--wb-mono); font-size: .72rem; }

/* ---------- note ---------- */
.wb-note { margin-top: var(--wp--preset--spacing--50) !important; padding: 1.5rem clamp(1.25rem, 3vw, 2rem); border-radius: var(--wb-r); background: #FFF6E2; border: 1px solid #FFE0A3; gap: 1rem; }
.wb-note p { margin: 0; max-width: 62ch; }
.wb-note .wp-block-buttons { margin: 0; }

/* ---------- faq ---------- */
.wb-faq { max-width: 860px; }
.wb-faq > .is-style-slash { margin-top: 2.5rem; }
.wb-faq > .is-style-slash:first-child { margin-top: 0; }
.wp-block-details { border: 1px solid var(--wb-line); border-radius: 8px; margin: 0 0 .6rem !important; background: var(--wb-white); transition: border-color .2s; }
.wp-block-details[open] { border-color: var(--wb-blue); box-shadow: 0 0 0 1px var(--wb-blue); }
.wp-block-details summary { cursor: pointer; list-style: none; padding: 1.1rem 3.25rem 1.1rem 1.25rem; font-weight: 600; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: ""; position: absolute; right: 1.25rem; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--wb-gray); border-bottom: 2px solid var(--wb-gray); transform: rotate(45deg); transition: transform .25s var(--wb-ease); }
.wp-block-details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; border-color: var(--wb-blue); }
.wp-block-details > :not(summary) { margin: 0; padding: 0 1.25rem 1.2rem; color: var(--wb-gray); }

/* ---------- contact ---------- */
.wb-contact { display: grid; gap: 3rem; padding-top: clamp(2.5rem, 7vw, 5rem); }
@media (min-width: 960px) { .wb-contact { grid-template-columns: 1fr 1.05fr; gap: 4.5rem; align-items: start; } }
.wb-contact > * { margin: 0 !important; min-width: 0; }
.wb-contact__intro > * { margin-block: 0 1.4rem; }
.wb-contact__card > * { margin-block: 0 .3rem !important; }
.wb-contact__card p + .wb-footer__label { margin-top: 1rem !important; }
.wb-contact__card .wb-footer__label { color: var(--wb-gray); }
.wb-contact__mail { font-family: var(--wb-display); font-weight: 700; font-size: clamp(1.05rem, 2.2vw, 1.35rem); word-break: break-all; }
.wb-contact__tip { font-size: .88rem; color: #996800; background: #FCF9E8; border-left: 3px solid #DBA617; padding: .8rem 1rem; border-radius: 0 6px 6px 0; }
.wb-contact__form { padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: 16px; background: var(--wb-white); border: 1px solid var(--wb-line); box-shadow: var(--wb-shadow); }
.wptpl-form { display: grid; gap: 1rem; }
.wptpl-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .wptpl-form__row { grid-template-columns: 1fr; } }
.wptpl-form__field { margin: 0; display: grid; gap: .35rem; }
.wptpl-form label { font-size: .85rem; font-weight: 600; }
.wptpl-form input, .wptpl-form select, .wptpl-form textarea { width: 100%; box-sizing: border-box; padding: .8rem .9rem; border: 1px solid #8C8F94; border-radius: 4px; background: var(--wb-white); color: var(--wb-ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.wptpl-form textarea { min-height: 150px; resize: vertical; }
.wptpl-form input:focus, .wptpl-form select:focus, .wptpl-form textarea:focus { outline: none; border-color: var(--wb-blue); box-shadow: 0 0 0 1px var(--wb-blue); }
.wptpl-form__actions { margin: .25rem 0 0; }
.wptpl-form__actions button { width: 100%; padding: 1rem 1.5rem; }
.wptpl-form__notice { padding: 1rem 1.25rem; border-left: 4px solid var(--wb-mint); background: #EDFAEF; border-radius: 0 6px 6px 0; }
.wptpl-form__notice--error { border-color: #D63638; background: #FCF0F1; color: #8A2424; }

/* ---------- blog ---------- */
.wb-posts .wp-block-post-template { gap: 2rem 1.25rem; }
.wb-post-card { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--wb-line); border-radius: var(--wb-r); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.wb-post-card:hover { border-color: var(--wb-blue); box-shadow: 0 0 0 1px var(--wb-blue); }
.wb-post-card .wp-block-post-featured-image { margin: 0; }
.wb-post-card__body { padding: 1.25rem 1.35rem 1.5rem; }
.wb-post-card__body > * { margin-block: 0 .6rem; }
.wb-post-card .wp-block-post-terms a { display: inline-block; padding: .15rem .45rem; border-radius: 4px; background: rgba(56, 88, 233, .08); color: var(--wb-blue); }
.wb-post-card .wp-block-post-title { font-size: 1.3rem !important; letter-spacing: -.03em; line-height: 1.2; }
.wb-post-card .wp-block-post-title a { color: var(--wb-ink); }
.wb-post-card .wp-block-post-excerpt { color: var(--wb-gray); }
.wb-post-card .wp-block-post-excerpt__excerpt { margin: 0; }
.wp-block-query-pagination { margin-top: 3rem; }
.wb-article { padding-top: clamp(2.5rem, 6vw, 4rem); }
.wb-article__meta { gap: 1rem; margin-bottom: 1.25rem !important; }
.wb-article__title { font-size: clamp(2.2rem, 5vw, 3.5rem) !important; letter-spacing: -.045em; line-height: 1.05; }
.wb-article__lede { font-size: var(--wp--preset--font-size--large); color: var(--wb-gray); }
.wb-article__img { margin-block: 2.5rem !important; }
.wb-article__img img { border-radius: 16px; }
.wb-prose h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 2.4rem; letter-spacing: -.03em; }
.wb-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wb-prose li::marker { color: var(--wb-blue); }
.wb-article__nav { margin-top: 3rem !important; padding-top: 1.5rem; border-top: 1px solid var(--wb-line); font-weight: 600; }

/* ---------- 404 ---------- */
.wb-404 { padding: clamp(3rem, 8vw, 6rem) 0; max-width: 760px; }
.wb-404 > * { margin-block: 0 1.25rem; }
.wb-404__code { display: inline-block; padding: .4rem .8rem; border-radius: 6px; background: #FCF0F1; color: #D63638; font-family: var(--wb-mono); font-size: 1rem; }
.wb-404 h1 { font-size: clamp(2.4rem, 6vw, 4rem) !important; letter-spacing: -.045em; }
.wb-404 .has-large-font-size { color: var(--wb-gray); }

/* ---------- product page ---------- */
.wb-crumbs { padding-top: 2rem; font-size: .85rem; }
.wb-crumbs a { color: var(--wb-gray); }
.wb-product__top { display: grid; gap: 2.5rem; margin-top: 1.5rem !important; }
@media (min-width: 960px) { .wb-product__top { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 3.5rem; } }
.wb-product__top > * { margin: 0 !important; min-width: 0; }
.wb-product__media .wp-block-post-featured-image { margin: 0; }
@media (min-width: 960px) { .wb-product__summary { position: sticky; top: 6rem; } }
.wb-product__summary > * { margin-block: 0 1rem; }
.wb-product__cat a { display: inline-block; padding: .2rem .55rem; border-radius: 4px; background: rgba(56, 88, 233, .08); color: var(--wb-blue); font-family: var(--wb-mono); font-size: .75rem; }
.wb-product__title { font-size: clamp(2.2rem, 4.4vw, 3.4rem) !important; line-height: 1.05; letter-spacing: -.045em; }
.wb-product__excerpt { font-size: var(--wp--preset--font-size--large); color: var(--wb-gray); }
.wb-product__excerpt p { margin: 0; }
.wb-product__buybox { padding: 1.6rem; border-radius: 14px; background: var(--wb-white); border: 1px solid var(--wb-line); box-shadow: var(--wb-shadow); }
.wb-product__buybox > * { margin-block: 0 1rem; }
.wb-product__buybox > *:last-child { margin-bottom: 0; }
.wb-product__price, .wb-product__price .wc-block-components-product-price { font-family: var(--wb-display); font-size: 2.75rem !important; font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.wb-product__price del { font-size: .5em; color: var(--wb-gray); font-weight: 500; }
.wb-product__price ins { text-decoration: none; }
.wb-product__buy form.cart { display: flex; margin: 0; }
.wb-product__buy .quantity { display: none; }
.wb-product__buy .single_add_to_cart_button { width: 100%; padding: 1.05rem 1.5rem !important; }
.wb-product__assurances { list-style: none; padding: 1rem 0 0; margin: 0; border-top: 1px solid var(--wb-line); display: grid; gap: .5rem; font-size: var(--wp--preset--font-size--small); color: var(--wb-gray); }
.wb-product__assurances li::before { content: "✓  "; color: var(--wb-mint); font-weight: 700; }
.wb-product__details { margin-top: var(--wp--preset--spacing--60) !important; display: grid; gap: 1rem 3rem; border-top: 1px solid var(--wb-line); padding-top: 2rem; }
@media (min-width: 960px) { .wb-product__details { grid-template-columns: 1fr 2fr; } .wb-product__details > .is-style-slash { grid-column: 1 / -1; justify-self: start; } }
.wb-product__details > * { margin: 0 !important; }
.wb-product__details-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -.04em; }
.wb-product__desc > :first-child { margin-top: 0; }
.wb-product__desc ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.wb-product__desc li { padding: .7rem .9rem .7rem 2.5rem; position: relative; border-radius: 8px; background: var(--wb-canvas); }
.wb-product__desc li::before { content: "✓"; position: absolute; left: .85rem; top: .7rem; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--wb-blue); color: var(--wb-white); font-size: .7rem; }

/* ---------- WooCommerce bits ---------- */
.woocommerce-MyAccount-navigation ul { list-style: none; padding: .4rem; margin: 0 0 2rem; border: 1px solid var(--wb-line); border-radius: var(--wb-r); }
.woocommerce-MyAccount-navigation a { display: block; padding: .6rem .9rem; border-radius: 6px; color: var(--wb-ink); }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: rgba(56, 88, 233, .08); color: var(--wb-blue); }
.woocommerce form .input-text, .woocommerce-page form .input-text { border-radius: 4px; border: 1px solid #8C8F94; padding: .8rem .9rem; }
.woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .woocommerce #respond input#submit { border-radius: 4px; background: var(--wb-blue); color: var(--wb-white); font-weight: 600; padding: .9rem 1.3rem; }
.woocommerce button.button:hover, .woocommerce a.button:hover, .woocommerce input.button:hover { background: var(--wb-blue-dk); color: var(--wb-white); }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order { background: var(--wb-blue); color: var(--wb-white); }
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce #place_order:hover { background: var(--wb-blue-dk); color: var(--wb-white); }
.woocommerce-cart .woocommerce, .woocommerce-checkout .woocommerce, .woocommerce-account .woocommerce { margin-top: 1rem; }

/* ---------- footer ---------- */
.wb-footer { background: #1D2327; color: #F0F0F1; padding-top: var(--wp--preset--spacing--60); padding-bottom: 2rem; margin-top: 0; }
.wb-footer a { color: #F0F0F1; }
.wb-footer a:hover { color: #72AEE6; }
.wb-footer .wb-logo i:first-child, .wb-footer .wb-logo i:last-child { background: #F0F0F1; }
.wb-footer .wp-block-site-title a { color: #F0F0F1; }
.wb-footer .is-style-slash { background: rgba(114, 174, 230, .12); color: #72AEE6; }
.wb-footer__cta { display: grid; gap: 2rem; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 20px; background: linear-gradient(135deg, var(--wb-blue), #1A2D9E); align-items: end; }
@media (min-width: 900px) { .wb-footer__cta { grid-template-columns: 1.3fr 1fr; gap: 3rem; } }
.wb-footer__cta > * { margin: 0 !important; min-width: 0; }
.wb-footer__cta > * > * { margin-block: 0 1rem; }
.wb-footer__cta .is-style-slash { background: rgba(255, 255, 255, .14); color: var(--wb-white); }
.wb-footer__title { font-size: clamp(2.2rem, 5vw, 3.75rem) !important; letter-spacing: -.045em; color: var(--wb-white); }
.wb-publish { display: inline-block; padding: 0 .25em; border-radius: 8px; background: var(--wb-white); color: var(--wb-blue); }
.wb-footer__sub { color: rgba(255, 255, 255, .82); max-width: 44ch; }
.wb-footer__actions .wp-block-buttons { gap: .6rem; }
.wb-footer__cta .wp-block-button:not(.is-style-secondary) .wp-block-button__link { background: var(--wb-mango); color: var(--wb-ink); }
.wb-footer__cta .wp-block-button:not(.is-style-secondary) .wp-block-button__link:hover { background: var(--wb-white); }
.wb-footer__cta .is-style-secondary .wp-block-button__link { background: transparent; color: var(--wb-white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.wb-footer__mail { margin-top: 1.1rem !important; word-break: break-all; font-size: .95rem; }
.wb-footer__mail a { color: var(--wb-white); text-decoration: underline; text-underline-offset: 3px; }
.wb-footer__grid { display: grid; gap: 2.5rem; padding: var(--wp--preset--spacing--50) 0; }
@media (min-width: 760px) { .wb-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.wb-footer__grid > * { margin: 0 !important; }
.wb-footer__tag { color: #A7AAAD; max-width: 44ch; margin: 1rem 0 0; }
.wb-footer__label { font-family: var(--wb-mono); font-size: .75rem; color: #A7AAAD; margin: 0 0 .9rem; text-transform: uppercase; letter-spacing: .06em; }
.wb-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.wb-footer__bottom { padding-top: 1.5rem; border-top: 1px solid #3C434A; font-size: .85rem; color: #A7AAAD; gap: 1rem; }
.wb-footer__bottom p { margin: 0; }
.wb-footer__legal { display: flex; gap: 1.25rem; }
