/* AdiaResto Phase 11 — targeted public-site mobile/page polish.
   Loaded last, after Phase 10. No controllers, pricing or authorization changes. */
:root { --adia-mobile-focus:#ff9b62; }
/* Pricing selectors and cards: avoid labels/prices escaping on narrow devices. */
.adia-plan-collections, .adia-plan-panel, .adia-plan-grid, .adia-plan-card,
.adia-billing-switch, .adia-trial-strip, .adia-capability-grid { min-width:0; }
.adia-plan-card .adia-plan-price { overflow-wrap:anywhere; line-height:1.12; }
.adia-plan-card .adia-plan-desc, .adia-plan-card .adia-plan-notes li { overflow-wrap:anywhere; }
.adia-billing-option { min-width:0; }
.adia-billing-option:focus-visible, .site-header .navbar-toggler:focus-visible {
    outline:3px solid var(--adia-mobile-focus); outline-offset:3px;
}
.adia-plan-panel[hidden] { display:none!important; }
/* The preview is deliberately decorative and must never push the document sideways. */
.enterprise-hero .hero-grid, .enterprise-hero .hero-product,
.enterprise-hero .product-window, .enterprise-hero .cockpit,
.enterprise-hero .cockpit-head, .enterprise-hero .metric-grid { min-width:0; }
.enterprise-hero .hero-product { isolation:isolate; }
.enterprise-hero .cockpit-head strong, .enterprise-hero .metric-grid strong { overflow-wrap:anywhere; }
.site-header .navbar-toggler { min-width:44px; min-height:44px; }
.site-header .dropdown-menu a { overflow-wrap:anywhere; }
@media (min-width:992px) and (max-width:1199.98px) {
    /* The header has many links. Keep actions readable rather than squeezed. */
    .site-header .navbar-nav { gap:0!important; }
    .site-header .brand-logo { flex-shrink:0; width:190px; }
    .site-header .navbar-nav .nav-link { font-size:.77rem!important; padding-inline:.35rem!important; }
    .site-header .navbar-nav .btn { padding:.52rem .65rem; font-size:.77rem; }
}
@media (max-width:991.98px) {
    .site-header .navbar-collapse { overscroll-behavior:contain; }
    .site-header .navbar-nav { width:100%; }
    .site-header .nav-item { min-width:0; }
    .site-header .navbar-nav > .nav-item > .nav-link { width:100%; justify-content:space-between; }
    .site-header .dropdown-menu { padding:6px; border:0; background:#f6f9fc; border-radius:12px; }
    .site-header .mega-grid { grid-template-columns:minmax(0,1fr)!important; }
    .site-header .mega-grid a { padding:10px 12px; }
    .site-header .dropdown-item { white-space:normal; padding:10px 12px; }
    .site-header .navbar-nav .btn { width:100%; }
    .site-footer .footer-grid { column-gap:22px; row-gap:26px; }
}
@media (max-width:575.98px) {
    .enterprise-hero { overflow:hidden; }
    .enterprise-hero .hero-grid { padding-left:12px; padding-right:12px; }
    .enterprise-hero .hero-copy h1 { font-size:clamp(2.05rem,9.5vw,2.75rem); line-height:1.08; }
    .enterprise-hero .hero-product { min-height:365px; margin-inline:0; }
    .enterprise-hero .product-window { inset:16px 0 6px 0; border-radius:15px; }
    .enterprise-hero .product-window-top { padding-inline:10px; }
    .enterprise-hero .cockpit { padding:9px; }
    .enterprise-hero .metric-grid { gap:5px; }
    .enterprise-hero .metric-grid > div { min-width:0; padding:7px; }
    .enterprise-hero .device-card { display:none; } /* Decorative callouts obscured controls at narrow widths */
    .adia-plan-grid { width:100%; max-width:440px; margin-inline:auto; }
    .adia-plan-card { width:100%; }
    .adia-plan-card > .btn { width:100%; white-space:normal; }
    .adia-billing-switch { max-width:100%; }
    .adia-billing-option { font-size:.82rem; padding-inline:6px; }
    .adia-trial-strip { border-radius:16px; }
    .site-footer .footer-grid { grid-template-columns:minmax(0,1fr)!important; }
    .site-footer .footer-grid > * { grid-column:auto!important; }
    .site-footer .footer-bottom > div { flex-wrap:wrap; }
}
@media (max-width:375.98px) {
    .enterprise-hero .hero-product { min-height:324px; }
    .enterprise-hero .product-window { inset:12px 0 6px; }
    .enterprise-hero .product-window-top { height:43px; }
    .enterprise-hero .product-window-top img { width:116px; height:auto; }
    .enterprise-hero .product-window-body { height:calc(100% - 43px); }
    .enterprise-hero .cockpit-head { gap:5px; }
    .enterprise-hero .cockpit-head strong { font-size:.76rem; }
    .enterprise-hero .metric-grid > div { padding:6px; }
    .enterprise-hero .metric-grid strong { font-size:1.02rem; }
    .enterprise-hero .sales-chart { min-height:112px; }
    .enterprise-hero .bars { height:65px; }
    .adia-plan-price { font-size:clamp(1.7rem,8.5vw,2.1rem)!important; }
}
@media (prefers-reduced-motion:reduce) {
    .site-header *, .enterprise-hero *, .adia-pricing-section * { animation:none!important; transition:none!important; }
}
