/* Vibez App Manager — front-end design tokens and components (PRD §9). */
:root {
	--vz-bg: #ffffff;
	--vz-surface: #f7f8fa;
	--vz-text: #111827;
	--vz-muted: #586174;
	--vz-accent: #4f46e5;
	--vz-border: #e5e7eb;
	--vz-radius-card: 18px;
	--vz-radius-btn: 12px;
	--vz-max: 1200px;
	--vz-gutter: clamp(16px, 4vw, 32px);
	--vz-space: clamp(56px, 8vw, 96px);
	--vz-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.vz, .vz-text, .vz-dsection { font-family: var(--vz-font); color: var(--vz-text); }
.vz *, .vz *::before, .vz *::after { box-sizing: border-box; }
.vz-container { width: 100%; max-width: var(--vz-max); margin: 0 auto; padding: 0 var(--vz-gutter); }
.vz-section { padding: var(--vz-space) 0; background: var(--vz-bg); }
.vz-section.vz-alt { background: var(--vz-surface); }
.vz p, .vz li { font-size: 17px; line-height: 1.65; }
.vz-h1, .vz-dsection h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 750; color: var(--vz-text); margin: 0 0 16px; padding: 0; }
.vz-h2, .vz-dsection h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 700; color: var(--vz-text); margin: 0 0 12px; padding: 0; }
.vz-h3 { font-size: 19px; line-height: 1.3; font-weight: 650; margin: 0 0 6px; padding: 0; color: var(--vz-text); }
.vz-lead, .vz-dsection .vz-lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--vz-muted); max-width: 60ch; }
.vz-muted { color: var(--vz-muted); }
.vz-eyebrow, .vz-dsection .vz-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px !important; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--vz-accent); margin: 0 0 12px; padding: 0; }
.vz-section__head { margin-bottom: 32px; max-width: 70ch; }
.vz a:not(.vz-btn):not(.vz-card__link):not(.vz-play), .vz-dsection .vz-text a { color: var(--vz-accent); text-underline-offset: 3px; }
.vz a:focus-visible, .vz button:focus-visible, .vz summary:focus-visible, .vz [tabindex]:focus-visible, .vz-dsection a:focus-visible {
	outline: 3px solid var(--vz-accent); outline-offset: 3px; border-radius: 6px;
}

/* Divi text sections built by the layouts */
.vz-dsection { padding: var(--vz-space) 0 !important; }
.vz-dsection.vz-dalt { background: var(--vz-surface) !important; }
.vz-dsection .et_pb_row { max-width: var(--vz-max); width: calc(100% - 2 * var(--vz-gutter)); padding: 0 !important; }
.vz-dhero { padding-top: clamp(56px, 10vw, 120px) !important; }
.vz-dhero--small { padding-bottom: 0 !important; }
.vz-dprose .vz-text { max-width: 72ch; }
.vz-dsection p, .vz-dsection li { font-size: 17px; line-height: 1.65; color: var(--vz-text); }
.vz-principles { list-style: none; padding: 0 !important; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
.vz-principles li { padding: 20px 22px !important; background: var(--vz-bg); border: 1px solid var(--vz-border); border-radius: var(--vz-radius-card); }
.vz-principles strong { display: block; margin-bottom: 4px; }

/* Buttons (plugin buttons and Divi buttons given the vz-btn class) */
.vz-btn, body .et_pb_button.vz-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
	padding: 12px 22px !important; border-radius: var(--vz-radius-btn) !important; border: 2px solid var(--vz-accent) !important;
	font: 600 16px/1.2 var(--vz-font) !important; text-decoration: none !important; letter-spacing: 0 !important;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.vz-btn--primary, body .et_pb_button.vz-btn--primary { background: var(--vz-accent) !important; color: #fff !important; }
.vz-btn--primary:hover, body .et_pb_button.vz-btn--primary:hover { background: color-mix(in srgb, var(--vz-accent) 85%, #000) !important; }
.vz-btn--ghost { background: transparent; color: var(--vz-accent) !important; }
.vz-btn--ghost:hover { background: color-mix(in srgb, var(--vz-accent) 8%, transparent); }
body .et_pb_button.vz-btn::after { display: none !important; }
.vz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
/* Give uploaded Play artwork a consistent, readable CTA on light and dark sections. */
body .vz-play.vz-play--badge {
    display: inline-flex !important; align-items: center; justify-content: center;
    width: 224px; max-width: 100%; min-height: 64px; box-sizing: border-box;
    background: #fff; border: 1px solid #d1d5db; border-radius: 10px;
    padding: 8px 12px; text-decoration: none; flex: 0 1 auto;
}
body .vz-play.vz-play--badge img.vz-play-badge {
    display: block !important; width: 100% !important; max-width: 200px !important;
    height: auto !important; max-height: 84px; object-fit: contain; margin: 0 !important;
}
body .vz-play.vz-btn { min-height: 60px; max-width: 100%; box-sizing: border-box; font-size: 18px !important; }
body .vz-play:focus-visible { outline: 3px solid #60a5fa; outline-offset: 4px; }
@media (max-width: 480px) {
    body .vz-play.vz-play--badge { width: 200px; }
    body .vz-play.vz-btn { font-size: 16px !important; padding: 12px 16px !important; }
}

/* Badges */
.vz-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: none; background: var(--vz-surface); color: var(--vz-muted); border: 1px solid var(--vz-border); }
.vz-badge--soon { background: #fef3c7; color: #78350f; border-color: #fde68a; }
.vz-badge--live { background: #dcfce7; color: #14532d; border-color: #bbf7d0; }

/* App cards and grid: 1 / 2 / 3 columns */
.vz-grid { display: grid; gap: 20px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .vz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vz-principles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vz-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--vz-bg); border: 1px solid var(--vz-border); border-radius: var(--vz-radius-card); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.vz-apps .vz-card { background: var(--vz-bg); }
.vz-card:hover { border-color: color-mix(in srgb, var(--vz-accent) 45%, var(--vz-border)); box-shadow: 0 8px 24px rgba(17, 24, 39, .07); transform: translateY(-2px); }
.vz-card:focus-within { border-color: var(--vz-accent); }
.vz-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.vz-card__title { font-size: 19px; line-height: 1.3; font-weight: 650; margin: 0; padding: 0; }
.vz-card__link { color: var(--vz-text) !important; text-decoration: none !important; }
.vz-card__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--vz-radius-card); }
.vz-card__link:focus-visible { outline: none; }
.vz-card__link:focus-visible::after { outline: 3px solid var(--vz-accent); outline-offset: 2px; }
.vz-card__cat { font-size: 14px !important; color: var(--vz-muted); margin: 0; padding: 0; }
.vz-card__summary { color: var(--vz-text); margin: 6px 0 0; padding: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vz-card__more { margin-top: auto; padding-top: 14px; font-weight: 600; color: var(--vz-accent); font-size: 15px; }
.vz-icon { display: block; width: 64px; height: 64px; border-radius: 22%; object-fit: cover; flex: none; }
.vz-more { margin-top: 32px; text-align: center; }
.vz-apps--link-only { padding-top: 0; }
.vz-apps--featured + .vz-apps--preview { padding-top: 0; }
.vz-empty { text-align: center; }
.vz-empty__title { font-size: 22px !important; font-weight: 650; }

/* Breadcrumbs */
.vz-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 28px; padding: 0 !important; font-size: 14px; color: var(--vz-muted); }
.vz-crumbs li { font-size: 14px !important; padding: 0 !important; }
.vz-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--vz-border); }
.vz-crumbs a { color: var(--vz-muted) !important; }

/* App hero */
.vz-app-hero { padding-top: clamp(32px, 6vw, 64px); background: linear-gradient(180deg, color-mix(in srgb, var(--vz-accent) 6%, #fff), #fff 70%); }
.vz-hero { display: grid; gap: 24px; align-items: center; }
.vz-hero .vz-icon { width: 112px; height: 112px; box-shadow: 0 10px 30px rgba(17, 24, 39, .12); }
.vz-hero__summary { max-width: 60ch; }
.vz-note { margin-top: 20px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--vz-accent) 25%, var(--vz-border)); background: color-mix(in srgb, var(--vz-accent) 5%, #fff); border-radius: 12px; max-width: 60ch; }
@media (min-width: 768px) { .vz-hero { grid-template-columns: auto 1fr; gap: 40px; } .vz-hero .vz-icon { width: 144px; height: 144px; } }

/* Benefits, features, steps */
.vz-benefits, .vz-features, .vz-steps { list-style: none; margin: 0; padding: 0 !important; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .vz-benefits, .vz-features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vz-features { grid-template-columns: repeat(3, 1fr); } }
.vz-benefits li { position: relative; padding: 0 0 0 28px !important; }
.vz-benefits li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--vz-accent); }
.vz-benefits strong, .vz-steps strong { display: block; font-size: 18px; margin-bottom: 4px; }
.vz-benefits span, .vz-steps span { color: var(--vz-muted); }
.vz-feature { padding: 24px !important; background: var(--vz-bg); border: 1px solid var(--vz-border); border-radius: var(--vz-radius-card); }
.vz-feature__num { display: inline-block; font-size: 13px; font-weight: 700; color: var(--vz-accent); margin-bottom: 10px; letter-spacing: .06em; }
.vz-feature p { margin: 0; padding: 0; color: var(--vz-muted); }
.vz-steps { counter-reset: vz-step; }
.vz-steps li { counter-increment: vz-step; position: relative; padding: 4px 0 4px 60px !important; min-height: 44px; }
.vz-steps li::before { content: counter(vz-step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--vz-accent); }

/* Screenshot gallery: swipe, scroll-snap, prev/next buttons, no autoplay */
.vz-gallery { position: relative; }
.vz-gallery__controls { display: flex; justify-content: flex-end; gap: 8px; margin: -64px 0 20px; }
.vz-gallery__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--vz-border); background: var(--vz-bg); color: var(--vz-text); font-size: 24px; line-height: 1; cursor: pointer; }
.vz-gallery__btn:hover { border-color: var(--vz-accent); color: var(--vz-accent); }
.vz-gallery__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none; margin: 0; padding: 4px 4px 16px !important; overscroll-behavior-x: contain; }
.vz-gallery__item { flex: 0 0 auto; width: min(68vw, 260px); scroll-snap-align: start; padding: 0 !important; }
.vz-gallery__item figure { margin: 0; }
.vz-gallery__item img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 19.5; object-fit: cover; border-radius: 18px; border: 1px solid var(--vz-border); background: var(--vz-surface); }
.vz-gallery__item figcaption { font-size: 14px; color: var(--vz-muted); margin-top: 10px; }

/* FAQ */
.vz-faq { max-width: 820px; }
.vz-faq__item { border-bottom: 1px solid var(--vz-border); }
.vz-faq__item summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 18px; }
.vz-faq__item summary::-webkit-details-marker { display: none; }
.vz-faq__item summary::after { content: "+"; position: absolute; right: 8px; top: 16px; font-size: 26px; color: var(--vz-accent); }
.vz-faq__item[open] summary::after { content: "−"; }
.vz-faq__answer { padding: 0 0 20px; color: var(--vz-muted); }

/* CTA and legal */
.vz-cta { background: var(--vz-accent); }
.vz-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.vz-cta .vz-h2 { color: #fff; margin: 0; }
.vz-cta .vz-btn--primary { background: #fff !important; color: var(--vz-accent) !important; border-color: #fff !important; }
.vz-legal { list-style: none; padding: 0 !important; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.vz-legal a { display: inline-block; padding: 10px 16px; border: 1px solid var(--vz-border); border-radius: var(--vz-radius-btn); background: var(--vz-bg); text-decoration: none; font-weight: 600; }
.vz-prose { max-width: 72ch; }

/* App policy pages */
.vz-policy-head { margin-bottom: 28px; padding: 18px 20px; background: var(--vz-surface); border: 1px solid var(--vz-border); border-radius: 12px; }
.vz-policy-head .vz-crumbs ol { margin-bottom: 12px; }
.vz-policy-head p { margin: 0 0 6px; padding: 0; }
.vz-policy-foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--vz-border); }
.vz-policy h2 { margin-top: 32px; scroll-margin-top: 100px; }

/* Footer */
.vz-footer { background: #0b1020; color: #cbd5e1; padding: 56px 0 24px; }
.vz-footer p, .vz-footer li { color: #cbd5e1; font-size: 15px; }
.vz-footer a { color: #fff !important; text-decoration: none; }
.vz-footer a:hover { text-decoration: underline; }
.vz-footer ul { list-style: none; padding: 0 !important; margin: 0; }
.vz-footer li { padding: 0 0 8px !important; }
.vz-footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .vz-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.vz-footer__logo { display: inline-block; margin-bottom: 14px; }
.vz-footer__logo img { display: block; width: 180px; height: auto; }
.vz-footer__brand { color: #fff !important; font-size: 20px !important; font-weight: 700; margin-bottom: 8px; }
.vz-footer__h { color: #fff !important; font-weight: 650; margin-bottom: 12px; font-size: 14px !important; text-transform: uppercase; letter-spacing: .06em; }
.vz-footer__base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }
.vz-footer__base p { font-size: 14px; }

.vz .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
	.vz *, .vz-btn, .vz-card { transition: none !important; transform: none !important; scroll-behavior: auto !important; }
}

.vz-app-description{margin-top:2rem;overflow-wrap:anywhere}.vz-play svg{flex-shrink:0;vertical-align:middle}.vz-play.vz-btn{display:inline-flex;align-items:center;gap:.6rem}

.vz-legal li { list-style: none !important; }
.vz-legal li::marker { content: ""; }

/* Policy pages (1.1.6): centred reading column. Builder pages (Divi Builder) are left to Divi's own row, width and alignment settings. */
:root { --vz-read: 720px; }
.vz-policy-col { width: 100%; max-width: var(--vz-read); margin-inline: auto; }
.vz-policy.vz-prose { max-width: var(--vz-read); margin-inline: auto; }
.vz-app-policy .entry-title, .vz-site-policy .entry-title { max-width: var(--vz-read); margin-inline: auto; }
.vz-policy-bar { width: 80%; max-width: 1080px; margin: 32px auto 0; } /* same default width as a Divi row */
.vz-policy-bar.vz-policy-foot { margin: 0 auto 56px; }

/* Exactly four app cards: 2x2 on laptops, one row on wide screens, never 3+1 */
@media (min-width: 1024px) { .vz-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .vz-grid:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
