/* CPBDHost V17 — compact, readable MOBILE presentation across public pages.
   No desktop rules. No changes to Admin, DB, carousel behaviour or V16 8x5 technology stack.
   Keep content visible. Cards use grids appropriate to their content, not one size for everything. */
@media screen and (max-width:700px) {
  html[data-cp-page="home"], html[data-cp-page="detail"], html[data-cp-page="terms"] {overflow-x:clip;}
  html[data-cp-page] body { font-size:12px; line-height:1.5; }
  html[data-cp-page] main { min-width:0; }
  html[data-cp-page="home"] main .wrap,
  html[data-cp-page="detail"] main .wrap,
  html[data-cp-page="terms"] main .wrap {
    width:calc(100% - 24px)!important; max-width:100%!important; min-width:0!important;
    margin-left:auto!important; margin-right:auto!important;
  }
  /* Shared mobile text rhythm — smaller without making form fields unusuable. */
  html[data-cp-page="home"] .st-section {padding-top:38px!important;padding-bottom:38px!important;}
  html[data-cp-page="home"] .st-section-heading {margin-bottom:17px!important;}
  html[data-cp-page="home"] .st-section h2,
  html[data-cp-page="home"] .st-section-heading h2 {font-size:clamp(22px,5.5vw,29px)!important;line-height:1.16!important;letter-spacing:-.045em!important;margin:7px 0 9px!important;}
  html[data-cp-page="home"] .st-section-heading p,
  html[data-cp-page="home"] .st-section-heading .st-subtitle {font-size:11.5px!important;line-height:1.5!important;margin:6px auto 12px!important;}
  html[data-cp-page="home"] .st-eyebrow,
  html[data-cp-page="home"] .st-overline {font-size:8px!important;letter-spacing:.12em!important;}
  html[data-cp-page="home"] .st-hero-inner {padding-top:72px!important;padding-bottom:47px!important;}
  html[data-cp-page="home"] .st-hero h1 {font-size:clamp(29px,7.2vw,40px)!important;line-height:1.13!important;margin:14px auto!important;}
  html[data-cp-page="home"] .st-hero p {font-size:12px!important;line-height:1.58!important;margin:10px auto 17px!important;}
  html[data-cp-page="home"] .st-hero-actions {gap:6px!important;margin-top:12px!important;}
  html[data-cp-page="home"] .st-hero-actions .st-btn {font-size:10px!important;min-height:36px!important;padding:9px 12px!important;border-radius:999px!important;}
  html[data-cp-page="home"] .st-band {padding-top:12px!important;padding-bottom:12px!important;}
  html[data-cp-page="home"] .st-logo-pill {font-size:10px!important;padding:8px 10px!important;}
  /* Five showcase statistics: 3 compact columns, natural height, no giant feature card. */
  html[data-cp-page="home"] #studio .st-section-heading {margin-bottom:17px!important;}
  html[data-cp-page="home"] #studio .st-stats-grid {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;align-items:stretch!important;}
  html[data-cp-page="home"] #studio .st-stat,
  html[data-cp-page="home"] #studio .st-stat.st-stat-center {
    grid-area:auto!important;grid-column:auto!important;grid-row:auto!important;
    min-height:105px!important;height:auto!important;padding:14px 9px 10px!important;
    border-radius:13px!important;justify-content:flex-end!important;gap:3px!important;
  }
  html[data-cp-page="home"] #studio .st-stat small {font-size:7px!important;top:9px!important;left:9px!important;}
  html[data-cp-page="home"] #studio .st-stat h3 {font-size:10px!important;line-height:1.25!important;margin:0!important;}
  html[data-cp-page="home"] #studio .st-stat strong {font-size:clamp(20px,5.3vw,29px)!important;line-height:1.12!important;margin:0!important;}
  html[data-cp-page="home"] #studio .st-stat p {font-size:8.5px!important;line-height:1.36!important;margin:0!important;}
  /* Core services remain complete and clickable; 2 compact cards per row. */
  html[data-cp-page="home"] #services .st-service-grid {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  html[data-cp-page="home"] #services .st-service {
    min-height:188px!important;height:auto!important;padding:13px 11px!important;
    border-radius:15px!important;gap:4px!important;
  }
  html[data-cp-page="home"] #services .st-service-icon {width:37px!important;height:37px!important;min-width:0!important;margin:0 0 6px!important;}
  html[data-cp-page="home"] #services .st-service-icon img {width:27px!important;height:27px!important;}
  html[data-cp-page="home"] #services .st-service small {font-size:7.5px!important;line-height:1.25!important;letter-spacing:.05em!important;}
  html[data-cp-page="home"] #services .st-service h3 {font-size:13px!important;line-height:1.22!important;margin:3px 0!important;}
  html[data-cp-page="home"] #services .st-service p {font-size:10px!important;line-height:1.43!important;margin:0!important;}
  html[data-cp-page="home"] #services .st-service .st-more {font-size:9px!important;margin-top:auto!important;}
  html[data-cp-page="home"] #services .st-tech-subsection {margin-top:24px!important;padding-top:18px!important;}
  /* Preserve V16's eight columns x five rows + six live category counters. */
  html[data-cp-page="home"] #technologies .st-section-heading {margin-bottom:10px!important;}
  /* Category tiles: three usable columns, wrapping long category labels. */
  html[data-cp-page="home"] #cpbd-categories .st-category-grid {grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;}
  html[data-cp-page="home"] #cpbd-categories .st-cat {min-height:118px!important;padding:10px 8px!important;border-radius:14px!important;gap:4px!important;}
  html[data-cp-page="home"] #cpbd-categories .st-cat-icon {width:34px!important;height:34px!important;margin-bottom:1px!important;}
  html[data-cp-page="home"] #cpbd-categories .st-cat-icon img {width:28px!important;height:28px!important;}
  html[data-cp-page="home"] #cpbd-categories .st-cat strong {font-size:10.5px!important;line-height:1.25!important;overflow-wrap:anywhere!important;}
  html[data-cp-page="home"] #cpbd-categories .st-cat small {font-size:8px!important;line-height:1.28!important;}
  html[data-cp-page="home"] #cpbd-categories .st-cat i {font-size:11px!important;}
  /* Compact process — retain the six visible cards and current mobile behavior. */
  html[data-cp-page="home"] #process .st-process-track {gap:7px!important;}
  html[data-cp-page="home"] #process .st-process-card {min-height:123px!important;height:auto!important;padding:12px!important;border-radius:14px!important;}
  html[data-cp-page="home"] #process .st-process-card b {font-size:24px!important;line-height:1.15!important;}
  html[data-cp-page="home"] #process .st-process-card h3 {font-size:11.5px!important;line-height:1.23!important;margin:8px 0 5px!important;}
  html[data-cp-page="home"] #process .st-process-card p {font-size:9.5px!important;line-height:1.42!important;}
  /* Image carousels stay animated and horizontally scrollable — simply smaller cards. */
  html[data-cp-page="home"] #demo-showcase .cpbd-demo-intro {padding-bottom:10px!important;}
  html[data-cp-page="home"] #demo-showcase .cpbd-demo-card {width:195px!important;min-width:195px!important;border-radius:15px!important;}
  html[data-cp-page="home"] #demo-showcase .cpbd-demo-frame {border-radius:11px!important;}
  html[data-cp-page="home"] #demo-showcase .cpbd-demo-meta {padding:9px!important;}
  html[data-cp-page="home"] #demo-showcase .cpbd-demo-meta h3 {font-size:10.5px!important;line-height:1.3!important;}
  html[data-cp-page="home"] #demo-showcase .cpbd-demo-meta small {font-size:8px!important;}
  html[data-cp-page="home"] #portfolio .cpbd-work-card {width:205px!important;min-width:205px!important;}
  html[data-cp-page="home"] #portfolio .cpbd-work-image {height:130px!important;}
  html[data-cp-page="home"] #portfolio .cpbd-work-meta {padding:9px!important;}
  html[data-cp-page="home"] #portfolio .cpbd-work-meta h3 {font-size:11px!important;line-height:1.3!important;}
  /* Case studies: smaller two-column cards, all text present (no line-clamp). */
  html[data-cp-page="home"] #portfolio .cpbd-case-grid,
  html[data-cp-page="home"] #portfolio .cpbd-case-stories {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  html[data-cp-page="home"] #portfolio .cpbd-case-story {min-width:0!important;min-height:0!important;display:block!important;padding:0!important;border-radius:13px!important;overflow:hidden!important;}
  html[data-cp-page="home"] #portfolio .cpbd-case-story-image {height:105px!important;min-height:0!important;}
  html[data-cp-page="home"] #portfolio .cpbd-case-story-content {padding:10px!important;min-width:0!important;}
  html[data-cp-page="home"] #portfolio .cpbd-case-story-content small {font-size:8px!important;line-height:1.3!important;}
  html[data-cp-page="home"] #portfolio .cpbd-case-story-content h3 {font-size:12px!important;line-height:1.25!important;margin:5px 0!important;}
  html[data-cp-page="home"] #portfolio .cpbd-case-story-content p {font-size:9.5px!important;line-height:1.46!important;}
  html[data-cp-page="home"] #portfolio .cpbd-case-story-content a {font-size:9px!important;}
  html[data-cp-page="home"] #why-us .st-trust-grid {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
  html[data-cp-page="home"] #why-us .st-trust-grid article {min-height:145px!important;padding:12px!important;border-radius:15px!important;}
  html[data-cp-page="home"] #why-us .st-trust-grid article b {height:33px!important;width:33px!important;}
  html[data-cp-page="home"] #why-us .st-trust-grid h3 {font-size:12px!important;line-height:1.3!important;margin:8px 0 4px!important;}
  html[data-cp-page="home"] #why-us .st-trust-grid p {font-size:10px!important;line-height:1.45!important;}
  /* All timeline cards stay visible even if scroll animations fail. */
  html[data-cp-page="home"] #benefits .st-timeline {margin-top:18px!important;}
  html[data-cp-page="home"] #benefits .st-timeline-item {min-height:0!important;margin-bottom:9px!important;}
  html[data-cp-page="home"] #benefits .st-timeline-card {min-height:122px!important;height:auto!important;padding:11px!important;border-radius:14px!important;}
  html[data-cp-page="home"] #benefits .st-timeline-card strong {font-size:23px!important;}
  html[data-cp-page="home"] #benefits .st-timeline-card h3 {font-size:11px!important;line-height:1.25!important;}
  html[data-cp-page="home"] #benefits .st-timeline-card p {font-size:9.5px!important;line-height:1.43!important;}
  html[data-cp-page="home"] #faq .st-faq-grid {gap:15px!important;}
  html[data-cp-page="home"] #faq .st-faq-call {padding:13px!important;margin-top:10px!important;border-radius:14px!important;}
  html[data-cp-page="home"] #faq .st-faq-answers details {padding:10px 12px!important;margin-bottom:7px!important;border-radius:13px!important;}
  html[data-cp-page="home"] #faq .st-faq-answers summary {font-size:11.5px!important;line-height:1.4!important;}
  html[data-cp-page="home"] #faq .st-faq-answers p {font-size:10.5px!important;line-height:1.5!important;}
  html[data-cp-page="home"] #contact {padding-top:38px!important;padding-bottom:38px!important;}
  html[data-cp-page="home"] #contact .contact-grid {gap:12px!important;}
  html[data-cp-page="home"] #contact .contact-panel,
  html[data-cp-page="home"] #contact .form {padding:15px!important;border-radius:15px!important;}
  html[data-cp-page="home"] #contact h2 {font-size:23px!important;line-height:1.18!important;}
  html[data-cp-page="home"] #contact .contact-method {padding:9px!important;gap:8px!important;border-radius:12px!important;}
  html[data-cp-page="home"] #contact .fields {gap:9px!important;}
  html[data-cp-page="home"] #contact input,
  html[data-cp-page="home"] #contact textarea,
  html[data-cp-page="home"] #contact select {font-size:16px!important;min-height:40px!important;}
  html[data-cp-page="home"] #make-my-website {padding-top:30px!important;padding-bottom:35px!important;}
  html[data-cp-page="home"] #make-my-website .st-builder-compact {padding:16px!important;gap:12px!important;border-radius:16px!important;}
  html[data-cp-page="home"] #make-my-website h2 {font-size:22px!important;}
  html[data-cp-page="home"] #make-my-website .st-btn {min-height:35px!important;padding:9px 11px!important;font-size:10px!important;}
  /* Shared footer on home and every detail page. */
  html[data-cp-page] .cpbd-premium-footer .cpbd-footer-width {width:calc(100% - 22px)!important;max-width:100%!important;}
  html[data-cp-page] .cpbd-premium-footer .cpbd-footer-v6-surface {padding:17px 13px!important;border-radius:16px!important;}
  html[data-cp-page] .cpbd-premium-footer .cpbd-footer-columns {display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:15px 12px!important;}
  html[data-cp-page] .cpbd-premium-footer .cpbd-footer-brand {grid-column:1/-1!important;}
  html[data-cp-page] .cpbd-premium-footer .cpbd-footer-col h3 {font-size:10px!important;letter-spacing:.1em!important;margin-bottom:9px!important;}
  html[data-cp-page] .cpbd-premium-footer .cpbd-footer-col a,
  html[data-cp-page] .cpbd-premium-footer .cpbd-footer-col p,
  html[data-cp-page] .cpbd-premium-footer .cpbd-footer-col span {font-size:10.5px!important;line-height:1.5!important;overflow-wrap:anywhere!important;}
  html[data-cp-page] .cpbd-premium-footer .cpbd-footer-brand p {font-size:11px!important;line-height:1.5!important;}
  html[data-cp-page] .cpbd-premium-footer .cpbd-footer-bottom {gap:7px!important;font-size:9px!important;}
  /* All menu detail pages reuse the same compact cards; never modify data or buttons. */
  html[data-cp-page="detail"] .cpbd-page-hero {padding:54px 0 35px!important;}
  html[data-cp-page="detail"] .cpbd-page-hero h1 {font-size:clamp(26px,6.8vw,38px)!important;line-height:1.12!important;margin:11px 0!important;}
  html[data-cp-page="detail"] .cpbd-page-hero p {font-size:11.5px!important;line-height:1.55!important;margin:0 0 13px!important;}
  html[data-cp-page="detail"] .cpbd-page-hero-actions {gap:7px!important;}
  html[data-cp-page="detail"] .cpbd-page-hero-actions a,
  html[data-cp-page="detail"] .cpbd-main-cta,
  html[data-cp-page="detail"] .cpbd-secondary-cta {font-size:10px!important;min-height:36px!important;padding:10px 12px!important;border-radius:999px!important;}
  html[data-cp-page="detail"] .cpbd-page-section {padding-top:28px!important;padding-bottom:30px!important;}
  html[data-cp-page="detail"] .cpbd-page-sectionhead {margin-bottom:15px!important;}
  html[data-cp-page="detail"] .cpbd-page-section h2 {font-size:clamp(21px,5.3vw,28px)!important;line-height:1.18!important;}
  html[data-cp-page="detail"] .cpbd-page-card {padding:13px!important;border-radius:14px!important;}
  html[data-cp-page="detail"] .cpbd-page-card h3 {font-size:13px!important;line-height:1.25!important;margin:8px 0!important;}
  html[data-cp-page="detail"] .cpbd-page-card p,
  html[data-cp-page="detail"] .cpbd-page-card li {font-size:10.5px!important;line-height:1.5!important;}
  html[data-cp-page="detail"] .cpbd-page-bottom-cta {padding:25px 0!important;}
  html[data-cp-page="detail"] .cpbd-page-bottom-cta h2 {font-size:22px!important;}
  html[data-cp-page="detail"] input,
  html[data-cp-page="detail"] textarea,
  html[data-cp-page="detail"] select {font-size:16px!important;}
  /* Terms page shares the same text scale/spacing. */
  html[data-cp-page="terms"] .cpbd-terms-hero {padding:45px 0 27px!important;}
  html[data-cp-page="terms"] .cpbd-terms-hero h1 {font-size:clamp(25px,6.8vw,37px)!important;line-height:1.17!important;}
  html[data-cp-page="terms"] .cpbd-terms-hero p {font-size:11.5px!important;line-height:1.5!important;}
  html[data-cp-page="terms"] .cpbd-terms-content {padding:22px 0 30px!important;}
  html[data-cp-page="terms"] .cpbd-terms-article {padding:15px!important;border-radius:15px!important;}
  html[data-cp-page="terms"] .cpbd-terms-article h2 {font-size:17px!important;line-height:1.3!important;}
  html[data-cp-page="terms"] .cpbd-terms-article p,
  html[data-cp-page="terms"] .cpbd-terms-article li {font-size:11px!important;line-height:1.55!important;}
}
@media screen and (max-width:350px) {
  html[data-cp-page="home"] #studio .st-stat {padding:13px 7px 9px!important;}
  html[data-cp-page="home"] #services .st-service {padding:11px 9px!important;}
  html[data-cp-page="home"] #cpbd-categories .st-cat {padding:9px 6px!important;}
  html[data-cp-page="home"] #portfolio .cpbd-case-story-content {padding:8px!important;}
}
