/*
Theme Name: Pioneer Studio
Version: 2.1.3
Description: Mobile studio portfolio for Pioneer Tech Global.
Requires PHP: 7.4
*/
@font-face {
    font-family: Manrope;
    src: url('assets/manrope.woff2') format('woff2');
    font-weight: 400 800;
    font-display: swap;
}

:root {
    --accent: #5845df;
    --ink: #181b2b;
    --cream: #faf9f6;
    --surface: #fff;
    --line: #dedde6;
    --field-line: #807d90;
    --muted: #43435a;
    --tint: #f1eef9;
    --lavender: #b5a5ff;
    --on-dark: #e6e1f5;
    --focus: var(--accent);
    --font: Manrope, Arial, sans-serif;
    --fs-h1: clamp(2.5rem, 4.8vw, 4.3rem);
    --fs-h2: clamp(1.9rem, 3.2vw, 2.8rem);
    --fs-h3: 1.25rem;
    --fs-body: 1.0625rem;
    --fs-small: .875rem;
    --radius-12: 12px;
    --radius-18: 18px;
    --radius-28: 28px;
    --radius-pill: 999px;
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-24: 24px;
    --space-32: 32px;
    --space-48: 48px;
    --space-72: 72px;
    --space-96: 96px;
    --section-space: clamp(56px, 7vw, var(--space-96));
    --gutter: clamp(16px, 4vw, var(--space-48));
    --shadow-soft: 0 8px 24px #181b2b14;
    --shadow-hover: 0 12px 32px #181b2b26;
}

*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: 108px;
    scrollbar-color: var(--ink) var(--cream);
}
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 var(--fs-body)/1.6 var(--font); }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6,
#contact-form .pcl-copy h2, .content .pcl-support-page :is(h2,h3) {
    font-family: var(--font);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.03em;
    text-transform: none;
    overflow-wrap: normal;
    word-break: keep-all;
    hyphens: none;
    text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2, #contact-form .pcl-copy h2, .content .pcl-support-page h2 { font-size: var(--fs-h2); }
h3, h4, h5, h6, .content .pcl-support-page h3 { font-size: var(--fs-h3); }
p { color: var(--muted); }
:is(a,button,input,select,textarea,summary):focus-visible,
.pcl-form :focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}
.skip { position: fixed; inset: var(--space-16) auto auto var(--space-16); z-index: 100001; padding: var(--space-8) var(--space-16); background: var(--surface); transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: min(1220px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

.nav { position: sticky; z-index: 20; top: 0; background: var(--cream); border-bottom: 1px solid var(--line); }
.admin-bar .nav { top: 32px; }
.navinner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 74px; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand img { width: clamp(128px, 20vw, 168px); }
.nav nav, .nav ul { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); padding: 0; margin: 0; list-style: none; }
.nav nav a { font-size: var(--fs-small); font-weight: 700; }
.nav nav a:hover { color: var(--accent); }
.nav-contact-link { display: none; }
.nav .menu-toggle { display: none; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12) var(--space-16); }
.button, .button-outline, .navcta, .textlink, .pcl-form button[type="submit"],
.pcl-noscript-picker button, .wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    padding: var(--space-8) var(--space-16);
    font: 800 var(--fs-small)/1.15 var(--font);
    transition: transform .2s, background-color .2s, box-shadow .2s;
}
.button, .navcta, .hero-button-primary, .pcl-form button[type="submit"], .pcl-noscript-picker button,
.wp-block-button__link, .pcl-guide .wp-block-button__link,
.filters button[aria-pressed="true"], .pcl-platform-switch button[aria-pressed="true"], .nav .menu-toggle[aria-expanded="true"] {
    color: var(--surface);
    background: var(--ink);
    border-color: var(--ink);
    text-decoration: none;
}
.button-outline, .app-hero .button-secondary, .hero-button-secondary, .filters button:not([aria-pressed="true"]),
.pcl-platform-switch button:not([aria-pressed="true"]), .nav .menu-toggle:not([aria-expanded="true"]),
.lightbox button, .pcl-guide-dialog button, .wp-block-button.is-style-outline .wp-block-button__link,
.pcl-guide .wp-block-button:nth-child(n+2) .wp-block-button__link {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--ink);
    text-decoration: none;
}
.button:hover, .navcta:hover, .hero-button-primary:hover, .pcl-form button[type="submit"]:hover:not(:disabled),
.pcl-noscript-picker button:hover, .wp-block-button__link:hover, .pcl-guide .wp-block-button__link:hover,
.filters button[aria-pressed="true"]:hover, .pcl-platform-switch button[aria-pressed="true"]:hover,
.nav .menu-toggle[aria-expanded="true"]:hover { background: var(--muted); border-color: var(--muted); }
.button-outline:hover, .app-hero .button-secondary:hover, .hero-button-secondary:hover, .filters button:not([aria-pressed="true"]):hover,
.pcl-platform-switch button:not([aria-pressed="true"]):hover, .nav .menu-toggle:not([aria-expanded="true"]):hover,
.lightbox button:hover, .pcl-guide-dialog button:hover, .wp-block-button.is-style-outline .wp-block-button__link:hover,
.pcl-guide .wp-block-button:nth-child(n+2) .wp-block-button__link:hover { background: var(--tint); }
.textlink { justify-content: flex-start; color: var(--accent); padding-inline: 0; }
.button:hover, .button-outline:hover, .navcta:hover, .hero-button:hover, .textlink:hover,
.pcl-form button[type="submit"]:hover:not(:disabled) { transform: translateY(-2px); }
.button:hover, .navcta:hover, .hero-button-primary:hover,
.pcl-form button[type="submit"]:hover:not(:disabled) { box-shadow: var(--shadow-hover); }
.textlink:hover { text-decoration: underline; text-underline-offset: .2em; }
.button svg { width: 16px; height: 16px; flex: none; }

.hero {
    border-bottom: 1px solid var(--line);
    background: radial-gradient(#181b2b16 1px, transparent 1.5px) 0 0 / 24px 24px,
        radial-gradient(700px 520px at 82% 38%, #5845df25, transparent 70%), var(--cream);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 5vw, var(--space-72)); padding-block: var(--section-space); }
.hero-copy { min-width: 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: var(--space-8); max-width: 100%; padding: var(--space-8) var(--space-16); border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--accent); font-size: var(--fs-small); font-weight: 800; }
.hero-eyebrow::before { content: ''; flex: 0 0 8px; height: 8px; border-radius: 50%; background: #23834f; }
.hero h1 { margin-block: var(--space-24); }
.hero h1 > span { display: block; }
.hero-highlight { position: relative; color: var(--accent); }
.hero-highlight svg { position: absolute; inset: auto 0 -.13em; width: 100%; height: .19em; color: #c7376c; }
.hero-intro { max-width: 45ch; }
.hero-actions { margin-top: var(--space-32); }
.hero-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual { container-type: inline-size; position: relative; isolation: isolate; width: 100%; max-width: 520px; aspect-ratio: 1; justify-self: center; }
.hero-visual::before, .hero-visual::after { position: absolute; z-index: -1; inset: 50% auto auto 50%; translate: -50% -50%; aspect-ratio: 1; border-radius: 50%; content: ''; }
.hero-visual::before { width: 78%; background: linear-gradient(160deg, var(--accent), var(--lavender)); }
.hero-visual::after { width: 100%; border: 1px dashed #5845df70; }
.hero-device { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 47%; aspect-ratio: 9 / 16; background: var(--ink); border-radius: var(--radius-28); box-shadow: var(--shadow-hover); overflow: hidden; }
.hero-device:empty { border: var(--space-8) solid var(--ink); background: linear-gradient(145deg, var(--tint), var(--lavender)); }
.hero-screen-image { width: 100%; height: 100%; object-fit: contain; }
.hero-app-link, .appcard, .expertise-grid article {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-18);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: box-shadow .2s, transform .2s;
}
.hero-app-link:hover, .appcard:hover, .expertise-grid article:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.hero-app-link { position: absolute; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-12); max-width: 46%; padding: var(--space-16); overflow-wrap: anywhere; }
.hero-app-link-0 { top: 4%; left: 0; }
.hero-app-link-1 { right: 0; bottom: 3%; }
.hero-app-icon { width: clamp(32px, 8cqw, 44px); aspect-ratio: 1; border-radius: var(--radius-12); overflow: hidden; background: var(--tint); }
.hero-app-link small, .hero-app-link strong { display: block; font-size: var(--fs-small); }
.hero-app-link small { color: var(--muted); }
.hero-play-link { position: absolute; top: 2%; right: 0; }
.hero-stats { margin-top: var(--space-32); padding: var(--space-24); border: 1px solid #ffffff30; border-radius: var(--radius-18); background: #ffffff08; }
.hero-stat-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.hero-stat { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: 'icon value' 'icon label'; align-content: center; column-gap: var(--space-12); padding: var(--space-8) var(--space-16); }
.hero-stat + .hero-stat { border-inline-start: 1px solid #ffffff30; }
.hero-stat-label { grid-area: label; color: var(--on-dark); font-size: var(--fs-small); font-weight: 700; }
.hero-stat-value { grid-area: value; font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.03em; }
.hero-stat-scale { color: var(--on-dark); font-size: var(--fs-small); letter-spacing: normal; }
.hero-stat-icon { grid-area: icon; align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-12); background: #b5a5ff22; color: var(--lavender); font-size: var(--fs-h3); }
.hero-stat-icon-apps::before { width: 16px; height: 16px; content: ''; background: radial-gradient(circle, currentColor 59%, transparent 62%) 0 0 / 50% 50%; }
.hero-stat-icon-download::before { content: '\2193'; }
.hero-stat-source { display: inline-flex; align-items: center; gap: var(--space-8); min-height: 44px; margin: var(--space-12) var(--space-16) 0; color: var(--lavender); font-size: var(--fs-small); font-weight: 800; }
.hero-stat-source:hover { text-decoration: underline; text-underline-offset: .2em; }

.portfolio, .about, .expertise, .contact { padding-block: var(--section-space); }
.portfolio { background: var(--tint); }
.sectionhead { display: grid; gap: var(--space-8); margin-bottom: var(--space-32); }
.sectionhead p { max-width: 65ch; }
:is(.hero-grid, .sectionhead, .about-grid, .expertise-grid) > .wp-block-group__inner-container { display: contents; }
.filters { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: var(--space-16); margin-bottom: var(--space-24); }
.filter-options { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.filters button, .filters input { min-height: 48px; padding: var(--space-8) var(--space-16); border-width: 1px; border-style: solid; border-radius: var(--radius-pill); font-size: var(--fs-small); }
.filters button { font-weight: 700; }
.filters input { width: min(100%, 235px); border-color: var(--field-line); background: var(--surface); color: var(--ink); }
.appgrid, .expertise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
.appcard { display: flex; flex-direction: column; }
.cardart { display: grid; place-items: center; aspect-ratio: 8 / 5; background: var(--ink); overflow: hidden; border-start-start-radius: calc(var(--radius-18) - 1px); border-start-end-radius: calc(var(--radius-18) - 1px); }
.cardart .banner { width: 100%; height: 100%; object-fit: contain; }
.cardart-icon { background: var(--tint); }
.fallback-icon { width: 30%; border-radius: var(--radius-18); box-shadow: var(--shadow-soft); }
.cardbody { display: flex; flex: 1; flex-direction: column; gap: var(--space-12); padding: var(--space-24); }
.card-heading { display: flex; align-items: center; gap: var(--space-12); }
.appicon { width: 48px; aspect-ratio: 1; object-fit: contain; border-radius: var(--radius-12); flex: none; }
.category { color: var(--accent); font-size: var(--fs-small); font-weight: 800; }
.cardbody :is(h2,h3) { font-size: 1.125rem; }
.card-summary { font-size: var(--fs-body); }
.card-footer { margin-top: auto; }
.rating { min-height: calc(var(--fs-small) * 1.6); color: var(--ink); font-size: var(--fs-small); font-weight: 800; }
.rating span, .detail-stats span span { color: #865000; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8) var(--space-12); margin-top: var(--space-8); padding-top: var(--space-8); border-top: 1px solid var(--line); }
.play-badge { display: inline-flex; min-height: 48px; align-items: center; }
.play-badge img { width: 120px; height: auto; object-fit: contain; }
.hero-play-link.play-badge img { width: 140px; }
#no-results { margin-top: var(--space-24); }
.about { --focus: var(--lavender); background: var(--ink); color: var(--surface); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--space-24); align-items: center; }
.about h2 span, .about .textlink { color: var(--lavender); }
.about p { max-width: 65ch; color: var(--on-dark); }
.studio-badges { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-24) clamp(12px, 4vw, 48px); margin: var(--space-32) 0 0; padding: 0; list-style: none; }
.studio-badge { position: relative; isolation: isolate; display: grid; place-items: center; flex: none; width: 80px; aspect-ratio: 1; text-align: center; text-transform: uppercase; }
.studio-badge::before { content: ''; position: absolute; z-index: -1; inset: 0; background: var(--badge-edge); clip-path: polygon(50% 0%, 60% 8%, 72% 5%, 77% 17%, 90% 19%, 91% 32%, 100% 40%, 95% 50%, 100% 60%, 91% 68%, 90% 81%, 77% 83%, 72% 95%, 60% 92%, 50% 100%, 40% 92%, 28% 95%, 23% 83%, 10% 81%, 9% 68%, 0% 60%, 5% 50%, 0% 40%, 9% 32%, 10% 19%, 23% 17%, 28% 5%, 40% 8%); }
.studio-badge-face { display: grid; place-content: center; gap: 3px; width: 76%; aspect-ratio: 1; border: 1px solid var(--badge-edge); border-radius: 50%; background: var(--badge-face); color: var(--badge-text); font-size: .625rem; font-weight: 800; line-height: 1.1; }
.studio-badge-face > span { font-size: .75rem; }
.studio-badge-trusted { --badge-edge: #f59a18; --badge-face: #271b12; --badge-text: #ffc563; }
.studio-badge-product { --badge-edge: #ffe091; --badge-face: #ffc241; --badge-text: #442a12; }
.studio-badge-product::after { content: ''; position: absolute; z-index: -2; inset: 55% 25% -7%; background: #f75b55; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); }
.studio-badge-service { --badge-edge: #91a4ff; --badge-face: #292c58; --badge-text: #fff; }
.studio-badge-service strong { padding: 4px 5px; border-radius: 2px; background: #b8df7b; color: var(--ink); transform: rotate(8deg); white-space: nowrap; }
.expertise-grid article { padding: var(--space-24); }
.expertise-grid h3 { margin-bottom: var(--space-8); }
.contact { border-top: 1px solid var(--line); }
#contact-form .pcl-section { padding: 0; gap: var(--space-32); }
#contact-form .pcl-copy h2 { margin-block: var(--space-8) var(--space-16); }
#contact-form .pcl-copy p { margin-bottom: var(--space-16); }
#contact-form :is(.pcl-kicker,.pcl-note), .pcl-form label, .pcl-input :is(label small,.pcl-hint), .pcl-guide figcaption { font-size: var(--fs-small); }
.pcl-form { gap: var(--space-16); border-color: var(--line); border-radius: var(--radius-18); box-shadow: var(--shadow-soft); }
.pcl-form label:not(.pcl-consent) > :is(input,select,textarea) { margin-top: var(--space-8); }
.pcl-form input:not([type=checkbox],[type=hidden]), .pcl-form select, .pcl-form textarea {
    min-height: 48px;
    border: 1px solid var(--field-line);
    border-radius: var(--radius-12);
    padding: var(--space-12);
    font: 500 var(--fs-body)/1.6 var(--font);
}
.pcl-form :is(input,select,textarea)[aria-invalid=true] { border-color: #9b2337; }
.pcl-form .pcl-notice { color: var(--ink); background: var(--tint); }
.contact-error .pcl-notice, .pcl-form .pcl-notice[role=alert] { color: #852338; background: #fcebf0; }
.contact-error .pcl-notice { border-inline-start: 3px solid #9b2337; }

.footer { --focus: var(--lavender); color: var(--surface); background: var(--ink); padding-block: var(--section-space) var(--space-24); }
.footgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: var(--space-24); }
.footer .brand { max-width: 100%; padding: var(--space-8) var(--space-12); border-radius: var(--radius-12); background: var(--cream); }
.footer p, .footer a:not(.brand), .footer .footline { color: var(--on-dark); font-size: var(--fs-small); }
.footer p { margin-block: var(--space-12) var(--space-8); }
.footer h2 { font-size: var(--fs-h3); margin-bottom: var(--space-12); }
.footer a:not(.brand) { display: block; width: fit-content; margin-bottom: var(--space-8); overflow-wrap: anywhere; }
.footer a.play-badge { display: flex; max-width: 100%; }
.footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.footer ul { padding: 0; margin: 0; list-style: none; }
.footline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-12); border-top: 1px solid #ffffff30; margin-top: var(--space-32); padding-top: var(--space-16); }

.content { padding-block: var(--section-space); min-height: 50vh; }
.pcl-support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
    padding: 0;
    list-style: none;
}
.pcl-support-grid > li { display: grid; }
.pcl-support-card {
    display: grid;
    align-content: center;
    gap: .6rem;
    min-height: 11rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-18);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-soft);
    transition: background-color .18s, border-color .18s, box-shadow .18s, transform .18s;
}
.pcl-support-card strong { font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 800; line-height: 1.2; }
.pcl-support-card span { max-width: 36ch; color: var(--pcl-muted, var(--muted)); font-size: 1rem; line-height: 1.55; }
.pcl-support-page a.pcl-support-card:hover, .pcl-support-card:focus-visible {
    border-color: var(--accent);
    background: var(--tint);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
}
.pcl-support-card:hover strong, .pcl-support-card:focus-visible strong { text-decoration: underline; text-underline-offset: .2em; }
@media (prefers-reduced-motion: no-preference) {
    .pcl-support-card:hover { transform: translateY(-3px); }
}
.content article:not(.appcard) { max-width: 74ch; }
.content > article:not(.appcard) { margin-inline: auto; }
.content article:not(.appcard) :is(h2,h3), .app-description :is(h2,h3) { margin-block: var(--space-24) var(--space-8); }
.content article:not(.appcard) p, .app-description p { margin-block: var(--space-16); }
.content article:not(.appcard) a:where(:not(.button, .button-outline, .wp-block-button__link)),
.app-description a:where(:not(.button, .button-outline, .wp-block-button__link)) { color: var(--accent); text-decoration: underline; }
.content .legal :is(p,li) { line-height: 1.7; }
.legal .updated { font-size: var(--fs-small); margin-bottom: var(--space-32); }
.legal ul { padding-inline-start: var(--space-24); }
.post-list { display: grid; gap: var(--space-32); }
.navigation.pagination { margin-top: var(--space-32); }
.back-link { margin-bottom: var(--space-16); }
.detail-cover { display: grid; place-items: center; background: var(--ink); border-radius: var(--radius-18); overflow: hidden; }
.detailart { width: 100%; max-height: 510px; object-fit: contain; }
.detail { display: flex; align-items: start; gap: var(--space-24); margin-top: var(--space-32); }
.detail-icon { width: 126px; flex: none; border-radius: var(--radius-28); }
.detail > div { min-width: 0; }
.detail h1 { margin-block: var(--space-8) var(--space-12); }
.detail-stats { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-16); margin-bottom: var(--space-12); font-size: var(--fs-small); }
.detail .play-badge img { width: 150px; }
.detail-section { margin-top: var(--section-space); }
.detail-section h2 { margin-bottom: var(--space-16); }
.app-description { max-width: 74ch; color: var(--muted); }
.description .actions { margin-top: var(--space-16); }
.screenshot-gallery { display: flex; align-items: stretch; gap: var(--space-12); overflow-x: auto; padding: var(--space-8); scroll-snap-type: x proximity; }
.screenshot-gallery a { flex: 0 0 auto; align-self: start; scroll-snap-align: start; border-radius: var(--radius-12); overflow: hidden; }
.screenshot-gallery img { width: auto; height: clamp(175px, 25vw, 240px); max-width: min(75vw, 390px); object-fit: contain; background: var(--tint); }
.lightbox { --focus: var(--lavender); width: min(96vw, 1400px); max-width: none; padding: var(--space-12); margin: auto; border: 0; background: transparent; }
.lightbox[open] { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-8); }
.lightbox::backdrop { background: #181b2bf5; }
.lightbox img { justify-self: center; max-height: 82vh; object-fit: contain; }
.lightbox button { width: 48px; min-height: 48px; border-width: 1px; border-style: solid; border-radius: var(--radius-pill); font-weight: 800; }
.lightbox-close { position: absolute; inset: var(--space-12) 60px auto auto; }
body:has(dialog[open]) { overflow: hidden; }

@media (max-width: 960px) {
    .navcta { display: none; }
    .nav-contact-link { display: block; }
    .appgrid, .footgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #contact-form .pcl-section { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-visual { max-width: 440px; }
    .navinner { min-height: 64px; flex-wrap: wrap; }
    .js .nav .menu-toggle { display: inline-flex; }
    .nav nav { flex: 1 1 100%; flex-wrap: wrap; }
    .js .nav nav { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: start; flex-wrap: nowrap; gap: var(--space-12); max-height: calc(100dvh - 112px); overflow-y: auto; padding: var(--space-16) var(--gutter); background: var(--cream); border-bottom: 1px solid var(--line); visibility: hidden; }
    .js .nav nav.open { visibility: visible; }
    .js .nav ul { flex-direction: column; align-items: start; }
}
@media (max-width: 620px) {
    .hero h1 { font-size: clamp(2rem, 9vw, 3.25rem); }
    .hero-grid { padding-top: var(--space-48); }
    .hero-visual { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12); padding-top: var(--space-48); aspect-ratio: auto; }
    .hero-visual::before, .hero-visual::after { top: calc(var(--space-48) + 50cqw); }
    .hero-device { position: relative; inset: auto; translate: none; grid-column: 1 / -1; justify-self: center; width: 56%; }
    .hero-app-link { position: relative; inset: auto; max-width: none; }
    .hero-play-link { top: 0; }
    .hero-stat-list, .appgrid, .about-grid, .expertise-grid { grid-template-columns: 1fr; }
    .hero-stat { padding: var(--space-12) 0; }
    .hero-stat + .hero-stat { border-inline-start: 0; border-top: 1px solid #ffffff30; }
    .hero-stat-source { margin: var(--space-4) 0 0; }
    .filters input { width: 100%; }
    .detail { flex-wrap: wrap; gap: var(--space-16); }
    .detail-icon { width: 82px; }
}
@media (max-width: 420px) {
    .footer-studio, .footer-legal { grid-column: 1 / -1; }
    .footer-legal a:not(.brand) { display: inline-block; margin-inline-end: var(--space-16); }
    .hero-app-link { grid-column: 1 / -1; }
}
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* v3: premium single app page */
.app-crumbs { display: flex; flex-wrap: wrap; gap: var(--space-8); margin-bottom: var(--space-16); font-size: var(--fs-small); font-weight: 700; color: var(--muted); }
.app-crumbs a { color: var(--accent); }
.app-hero { --focus: var(--lavender); position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-28); background: var(--ink); color: var(--surface); }
.app-hero::before { content: ''; position: absolute; z-index: -1; inset: -35% -12% auto auto; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #5845df99, transparent 66%); }
.app-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4.5vw, 56px); }
.app-hero-solo { grid-template-columns: 1fr; }
.app-hero-id { display: flex; align-items: center; gap: var(--space-16); }
.app-hero .detail-icon { width: 84px; border-radius: 22px; box-shadow: 0 12px 30px #0006; }
.app-hero .category { margin: 0; padding: 6px 14px; border-radius: var(--radius-pill); background: #ffffff1f; color: var(--surface); }
.app-hero h1 { margin: var(--space-16) 0 var(--space-12); color: var(--surface); font-size: clamp(2rem, 3.6vw, 3.2rem); text-wrap: balance; }
.app-hero-lead { max-width: 46ch; margin: 0 0 var(--space-16); color: var(--on-dark); font-size: 1.125rem; }
.app-chips { display: flex; flex-wrap: wrap; gap: var(--space-8); margin: 0 0 var(--space-24); padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid #ffffff2e; border-radius: var(--radius-pill); background: #ffffff14; font-size: var(--fs-small); font-weight: 700; color: var(--surface); }
.star { color: #ffc857; }
.app-hero .play-badge img { width: 160px; height: auto; }
.app-hero-art img { width: 100%; height: auto; aspect-ratio: 1024 / 500; object-fit: cover; border-radius: var(--radius-18); box-shadow: 0 24px 60px #0009; }
.app-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: clamp(24px, 4vw, 56px); margin-top: var(--space-48); }
.app-main > .detail-section:first-child { margin-top: 0; }
.app-main .detail-section { margin-top: var(--space-48); }
.app-main .description .app-description { max-width: none; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-18); background: var(--surface); line-height: 1.75; }
.screenshot-gallery { scrollbar-width: thin; }
.screenshot-gallery a { border-radius: var(--radius-18); box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s; }
.screenshot-gallery a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.screenshot-gallery img { height: clamp(220px, 30vw, 360px); }
.app-side { position: sticky; top: 96px; display: grid; gap: var(--space-16); }
.info-card { padding: var(--space-24); border: 1px solid var(--line); border-radius: var(--radius-18); background: var(--surface); box-shadow: var(--shadow-soft); }
.info-card h2 { margin: 0 0 var(--space-16); font-size: 1.125rem; letter-spacing: -.01em; }
.info-card p { margin: 0 0 var(--space-12); font-size: var(--fs-small); }
.info-card dl { display: grid; gap: var(--space-16); margin: 0; }
.app-support-links { margin-top: var(--space-16); overflow-wrap: anywhere; }
.info-card dt { color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.info-card dd { margin: 2px 0 0; font-weight: 800; }
.app-cta-bar { display: none; }
@media (max-width: 900px) {
    .app-hero-grid, .app-layout { grid-template-columns: 1fr; }
    .app-side { position: static; }
}
@media (max-width: 760px) {
    .single-bb_app:has(.app-cta-bar) .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
    html:has(.app-cta-bar) { scroll-padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
    .app-cta-bar { position: fixed; z-index: 30; inset: auto 0 0 0; display: flex; align-items: center; gap: var(--space-12); padding: 10px var(--space-16) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -8px 24px #181b2b1f; }
    .app-cta-bar .cta-icon { width: 44px; height: 44px; flex: none; border-radius: var(--radius-12); }
    .app-cta-bar strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-small); }
    .app-cta-bar .play-badge img { width: 128px; height: auto; }
}
@media (prefers-reduced-motion: reduce) { .screenshot-gallery a { transition: none; } }

/* v3.1: hero buttons and floating links */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12) var(--space-16); }
.hero-actions .wp-block-button__link { min-height: 52px; padding: 14px 28px; font-size: 1rem; }
.hero-actions .wp-block-button__link:hover { transform: translateY(-2px); }
.hero-primary .wp-block-button__link::after { content: "\2192" / ""; }
@media (min-width: 621px) {
    .hero-app-link { max-width: 42%; }
    .hero-app-link-0 { top: 0; left: 0; }
    .hero-app-link-1 { right: 0; bottom: 0; }
    .hero-play-link { top: 1%; right: 2%; }
}

/* v3.3: proper mobile menu button */
.nav .menu-toggle { align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border-width: 1px; border-style: solid; border-radius: var(--radius-pill); font: 800 var(--fs-small)/1 var(--font); transition: background-color .2s, box-shadow .2s; }
.nav .menu-toggle:hover { box-shadow: var(--shadow-soft); }
.menu-bars { position: relative; flex: none; width: 18px; height: 14px; }
.menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, top .25s; }
.menu-bars::before { top: 3px; }
.menu-bars::after { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { top: 6px; transform: rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-bars::before, .menu-bars::after { transition: none; } }

/* ===== Dynamic app grid (v2.1.0) =====
   Auto-fills columns, adapts to the number of visible apps, and gives the
   lead card a wide horizontal layout. Colors/typography reuse theme tokens. */
.appgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); grid-auto-flow: dense; align-items: stretch; }
.appgrid[data-count="1"] { grid-template-columns: minmax(0, 720px); }
.appgrid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-count { margin: 0 0 var(--space-16); color: var(--muted); font-size: var(--fs-small); font-weight: 700; }
.card-flag { align-self: start; padding: 2px var(--space-12); border-radius: var(--radius-pill); background: var(--tint); color: var(--accent); font-size: var(--fs-small); font-weight: 800; }
.card-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.appcard--lead { grid-column: 1 / -1; flex-direction: row; align-items: center; background: var(--surface); }
.appcard--lead .cardart { flex: 0 0 46%; align-self: stretch; aspect-ratio: 8 / 5; min-height: 0; border-radius: 0; border-start-start-radius: calc(var(--radius-18) - 1px); border-end-start-radius: calc(var(--radius-18) - 1px); }
.appcard--lead .cardbody { flex: 1; justify-content: center; align-self: center; padding: var(--space-32); }
.appcard--lead .card-footer { margin-top: var(--space-16); }
.appcard--lead .cardbody :is(h2,h3) { font-size: 1.5rem; }
.appcard--lead .card-summary { -webkit-line-clamp: 4; max-width: 60ch; }
.appcard--compact { flex-direction: row; align-items: stretch; }
.appcard--compact .cardart { flex: 0 0 104px; aspect-ratio: auto; border-radius: 0; border-start-start-radius: calc(var(--radius-18) - 1px); border-end-start-radius: calc(var(--radius-18) - 1px); }
.appcard--compact .cardart .fallback-icon { width: 56%; }
.appcard--compact .card-heading .appicon { display: none; }
.appgrid[data-count="1"] .appcard--lead, .appgrid[data-count="2"] .appcard--lead, .appgrid[data-count="3"] .appcard--lead { grid-column: auto; flex-direction: column; align-items: stretch; }
.appgrid[data-count="1"] .appcard--lead .cardart, .appgrid[data-count="2"] .appcard--lead .cardart, .appgrid[data-count="3"] .appcard--lead .cardart { flex: none; aspect-ratio: 8 / 5; border-radius: 0; border-start-start-radius: calc(var(--radius-18) - 1px); border-start-end-radius: calc(var(--radius-18) - 1px); }
@media (max-width: 640px) {
    .appgrid, .appgrid[data-count="2"] { grid-template-columns: minmax(0, 1fr); }
    .appcard--lead { grid-column: auto; flex-direction: column; align-items: stretch; }
    .appcard--lead .cardart { flex: none; }
    .appcard--lead .cardart { flex: none; min-height: 0; aspect-ratio: 8 / 5; border-radius: 0; border-start-start-radius: calc(var(--radius-18) - 1px); border-start-end-radius: calc(var(--radius-18) - 1px); }
    .appcard--lead .cardbody { padding: var(--space-24); }
}

/* ===== Billing Support screenshot guide ===== */
.ps-guide { display: grid; gap: var(--space-48, 48px); margin-block: var(--space-24); }
.ps-guide-platform h2 { margin-bottom: var(--space-8); }
.ps-guide-intro { color: var(--muted); margin-bottom: var(--space-24); }
.ps-guide-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-24); }
.ps-guide-step { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 260px); gap: var(--space-16) var(--space-24); align-items: center; padding: var(--space-24); border: 1px solid var(--line); border-radius: var(--radius-18); background: var(--surface); box-shadow: var(--shadow-soft); }
.ps-guide-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-pill); background: var(--accent); color: var(--surface); font-weight: 800; }
.ps-guide-copy h3 { margin: 0 0 var(--space-4); font-size: 1.125rem; }
.ps-guide-copy p { margin: 0; }
.ps-guide-shot { position: relative; display: block; justify-self: end; width: 100%; border-radius: var(--radius-12); overflow: hidden; border: 1px solid var(--line); background: var(--tint); }
.ps-guide-shot img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.ps-guide-zoom { position: absolute; inset: auto var(--space-8) var(--space-8) auto; padding: 2px var(--space-8); border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); font-size: var(--fs-small); font-weight: 700; opacity: 0; transition: opacity .2s; }
.ps-guide-shot:hover .ps-guide-zoom, .ps-guide-shot:focus-visible .ps-guide-zoom { opacity: 1; }
@media (hover: none) { .ps-guide-zoom { opacity: 1; } }
.ps-guide-missing { grid-column: 1 / -1; color: #8a1c1c; font-weight: 700; }
@media (max-width: 800px) {
    .ps-guide-step { grid-template-columns: auto minmax(0, 1fr); }
    .ps-guide-shot { grid-column: 1 / -1; justify-self: center; max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) { .ps-guide-zoom { transition: none; } }
