/* ==========================================================================
   ZUVO — responsive. Mobile gets its own compositions, not a shrunken desktop.
   ========================================================================== */

@media (max-width: 1200px) {
	.product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.site-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; }
	.sub-menu--cats { min-width: 460px; }
}

/* Tablet and below: drawer navigation, single-column compositions */
@media (max-width: 1024px) {
	:root { --header-h: 68px; }

	.nav-toggle { display: inline-grid; position: relative; }
	.brand, .site-header__actions { position: relative; z-index: 2; }
	body.nav-open { overflow: hidden; }
	body.nav-open .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }

	.site-nav { position: fixed; inset: 0; z-index: 1; flex: none; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: calc(var(--header-h) + 12px) var(--gutter) 40px; background: var(--bg); overflow-y: auto; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease), visibility 0s .6s; }
	.nav-open .site-nav { visibility: visible; clip-path: inset(0); transition: clip-path .6s var(--ease), visibility 0s; }

	.zuvo-menu { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.zuvo-menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--border); opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
	.nav-open .zuvo-menu > li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 55ms + 220ms); }
	.zuvo-menu a { flex: 1; padding: 18px 4px; font-size: 1.25rem; font-weight: 600; border-radius: 0; }
	.zuvo-menu > li > a:hover, .zuvo-menu > li:focus-within > a { background: none; }
	.menu-item-has-children > a::after { display: none; }
	.submenu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--bg-2); }
	.submenu-toggle::before { content: ""; width: 8px; height: 8px; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s var(--ease); }
	.is-open > .submenu-toggle::before { transform: translateY(2px) rotate(225deg); }
	.sub-menu { position: static; display: none; width: 100%; min-width: 0; padding: 4px 0 14px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
	.menu-item-has-children:hover > .sub-menu { display: none; }
	.menu-item-has-children.is-open > .sub-menu { display: grid; }
	.sub-menu--cats { grid-template-columns: 1fr 1fr; min-width: 0; }
	.sub-menu a { font-size: 1rem; font-weight: 500; padding: 10px 6px; }
	.site-nav__cta { display: inline-flex; margin-top: 28px; }

	.hero__inner { grid-template-columns: 1fr; }
	.hero__visual { order: 2; }
	.stage { max-width: 540px; }

	.bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.bento__item, .bento__item--2, .bento__item--3, .bento__item--4, .bento__item--5, .bento__item--6, .bento__item--7, .bento__item--8, .bento__item--9, .bento__item--10 { grid-column: span 3; }
	.bento__item--1 { grid-column: span 6; grid-row: span 1; }
	.bento__item--1 .cat-card__ghost .zi { width: 180px; height: 180px; }

	.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.windows, .ai, .why, .faq { grid-template-columns: 1fr; }
	.ai__intro, .why__lead, .faq__lead { position: static; }
	.windows__visual { max-width: 560px; margin-inline: auto; width: 100%; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
	.section { padding-block: 64px; }
	.steps { grid-template-columns: 1fr; gap: 28px; }
	.steps::before, .steps::after { inset-block: 28px 28px; inset-inline: auto; inset-inline-start: 28px; width: 2px; height: auto; }
	.steps::after { transform-origin: top center; transform: scaleY(var(--p, 0)); }
	html[dir="ltr"] .steps::after { transform-origin: top center; }
	.step { display: grid; grid-template-columns: 58px 1fr; column-gap: 20px; align-items: center; }
	.step__dot { grid-row: span 3; }
	.step__num { display: none; }
	.step__title { margin-top: 0; font-size: 1.3rem; }
	.why__list { grid-template-columns: 1fr; }
	.ai-index a { grid-template-columns: 38px minmax(0, 1fr) 24px; gap: 12px; padding-block: 18px; }
	.ai-index__desc { display: none; }
	.ai-index__arrow { opacity: 1; }
	.offers__head { align-items: flex-start; }
	.final-cta__box { border-radius: var(--r-lg); }
}

@media (max-width: 640px) {
	.header-cta { display: none; }
	.bento { grid-template-columns: 1fr 1fr; gap: 12px; }
	.bento__item, .bento__item--2, .bento__item--3, .bento__item--4, .bento__item--5, .bento__item--6, .bento__item--7, .bento__item--8, .bento__item--9, .bento__item--10 { grid-column: span 1; }
	.bento__item--1, .bento__item--10 { grid-column: span 2; }
	.cat-card { padding: 18px; gap: 14px; }
	.bento__item--1 .cat-card { padding: 22px; }
	.cat-card__desc { display: none; }
	.bento__item--1 .cat-card__desc { display: block; }
	.cat-card__ghost { display: none; }
	.bento__item--1 .cat-card__ghost { display: block; }
	.product-grid, .product-grid--lead { grid-template-columns: 1fr; }
	/* Product cards become compact horizontal rows on small screens */
	.sub-menu--cats { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.hero__actions .btn { flex: 1 1 100%; }
	.windows__visual { padding: 24px 6px; }
	.wa-float { inset-inline-end: 14px; inset-block-end: 14px; height: 54px; min-width: 54px; padding: 0 15px; }
	.wa-float__label { display: none; }
}

/* Hero stage on phones: re-composed, not just shrunk */
@media (max-width: 560px) {
	.stage { max-width: 420px; }
	.stage__plates { inset: 17%; }
	.tile { width: 32%; }
	.tile__inner { padding: 6px 8px; gap: 6px; border-radius: 12px; }
	.tile__mark { width: 26px; height: 26px; border-radius: 8px; font-size: .8rem; }
	.tile__name { font-size: .62rem; white-space: normal; line-height: 1.15; }
	.tile__text { min-width: 0; }
	.tile__tag { display: none; }
	.tile--1 { left: 1% !important; top: 7% !important; }
	.tile--2 { left: 35% !important; top: 0 !important; }
	.tile--3 { left: 68% !important; top: 13% !important; }
	.tile--4 { left: 0 !important; top: 44% !important; }
	.tile--5 { left: 68% !important; top: 46% !important; }
	.tile--6 { left: 2% !important; top: 79% !important; }
	.tile--7 { left: 35% !important; top: 86% !important; }
	.tile--8 { left: 68% !important; top: 79% !important; }
	.stage__core { inset-inline-start: 37%; inset-block-start: 37%; width: 26%; }
	.stage__chip { font-size: .7rem; padding: 6px 10px 6px 8px; padding-inline: 8px 10px; margin-inline-start: -64px; inset-block-start: 64%; }
}

@media (max-width: 380px) {
	:root { --gutter: 16px; }
	.hero__title { font-size: 2.15rem; }
	.btn--lg { min-height: 54px; padding: 0 22px; }
}

@media (hover: none) {
	.btn:hover { transform: none; box-shadow: none; }
}
