/* TLE public marketing mobile-first pass | 2026-11-01
   Public TLE pages and explicitly opted-in brand demos only.
   Never touches private Command Center, client accounts or payment internals.
   The mobile page has ONE primary reading column, a readable 16px base and
   a visibly dominant first action. The desktop composition stays original. */
@media (max-width: 767px) {
  :root { -webkit-text-size-adjust:100%; }
  :is(.sales-home, .service-sales, body[data-tle-demo], body[data-tle-experience], body[data-tle-page="ai-landing"]) {
    max-width:100%;
    overflow-x:clip;
  }
  /* Mobile marketing layout: full reading width with predictable margins. */
  :is(.sales-home,.service-sales) :is(.container,.section-heading,.page-intro),
  body[data-tle-demo] :is(.hero-copy,.hero-content,.hero-editorial-content),
  body[data-tle-experience] :is(.tle-hero-copy,.hero-copy,.intro) {
    min-width:0;
    max-width:100%;
  }
  :is(.sales-home,.service-sales) :is(.problem-layout,.booking-layout,.service-benefit-grid,.process-grid,.service-grid,.final-actions,.service-hero-actions),
  body[data-tle-experience="bundle"] :is(.tle-hero,.tle-bridge-grid,.tle-feature,.tle-hero-actions),
  body[data-tle-page="ai-landing"] :is(.cards,.demo-grid),
  body[data-tle-demo="casa-brownie"] :is(.flavor-grid,.delivery-steps),
  body[data-tle-demo="crumb"] :is(.cookie-grid,.gps-grid),
  body[data-tle-demo="aftr"] :is(.vip-grid,.offer-grid),
  body[data-tle-demo="claudia"] .main-grid,
  body[data-tle-demo="angela"] .serviceGrid {
    grid-template-columns:minmax(0,1fr)!important;
    min-width:0;
  }
  /* Existing layouts built with flex must also stop keeping two columns. */
  body[data-tle-experience="bundle"] :is(.tle-hero,.tle-feature,.tle-hero-actions),
  :is(.sales-home,.service-sales) :is(.final-actions,.service-hero-actions) {
    flex-direction:column;
    align-items:stretch;
  }
  /* Keep tap targets large but exempt miniature in-card media controls. */
  :is(.sales-home,.service-sales) :is(.cta-button,.service-cta,.service-demo-link,.tle-cta-pulse-button,.tle-primary-booking-offer__cta),
  body[data-tle-demo] :is(.primary-button,.primaryLink,.hero-action-start,.hero-editorial-cta,.btn-solid,.hero-start-link,.hero-cta .btn-solid,.buttons .primary),
  body[data-tle-experience] :is(.tle-hero-actions a,.hero-main-action,.hero-start,.intro-cta,.btn-primary,.button-dark,.tle-header-cta),
  body[data-tle-page="ai-landing"] :is(.hero .buttons a,.tle-cta-pulse-button) {
    box-sizing:border-box;
    min-height:50px!important;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    max-width:100%;
    white-space:normal;
    text-align:center;
    font-size:clamp(14px,3.8vw,16px);
    line-height:1.3;
  }
  /* One clear first-fold CTA: the secondary action remains usable but quiet. */
  .sales-home .hero-intro .hero-cta-row .cta-button,
  .service-sales .service-hero-actions :is(.service-cta,.cta-button):first-child,
  body[data-tle-experience="bundle"] .tle-hero-actions a:first-child,
  body[data-tle-demo="aftr"] .hero-cta .btn-solid,
  body[data-tle-demo="casa-brownie"] .hero-copy>.primary-button,
  body[data-tle-demo="crumb"] .hero-editorial-cta,
  body[data-tle-demo="angela"] .hero-action-start,
  body[data-tle-demo="claudia"] .hero-start-link {
    /* Consistent, compact hero actions: never a full-width banner on phones. */
    width:fit-content!important;
    max-width:min(100%,310px)!important;
    min-height:48px!important;
    padding:12px clamp(18px,5vw,24px)!important;
    font-weight:700;
    border-radius:999px!important;
  }
  .sales-home .hero-intro .demo-delivery-note a,
  body[data-tle-demo="aftr"] .hero-cta .btn-ghost,
  body[data-tle-experience="bundle"] .tle-hero-actions a:not(:first-child) {
    box-shadow:none!important;
    background:transparent!important;
    text-decoration:underline;
    text-underline-offset:3px;
    border:0!important;
  }
  /* Headline and description: first screen readable without zoom. */
  :is(.sales-home,.service-sales) :is(.section-heading h2,.page-intro h1),
  body[data-tle-experience="bundle"] .tle-hero-copy h1,
  body[data-tle-demo="claudia"] .hero h1,
  body[data-tle-demo="angela"] .hero h1 {
    font-size:clamp(29px,8.7vw,38px)!important;
    line-height:1.15!important;
    letter-spacing:-.035em;
    overflow-wrap:break-word;
    text-wrap:balance;
  }
  :is(.sales-home,.service-sales) :is(.section-heading>p,.page-intro>p,.service-hero>p),
  body[data-tle-demo] :is(.hero-copy>p,.hero-content>p,.hero-editorial-content>p,.hero>p),
  body[data-tle-experience="bundle"] .tle-hero-copy p {
    font-size:16px!important;
    line-height:1.55!important;
    max-width:53ch;
    overflow-wrap:break-word;
  }
  :is(.sales-home,.service-sales) :is(.section-heading,.hero-intro) { text-align:left; }
  .sales-home :is(.solutions-section,.problem-section,.booking-section,.process-section) {
    padding-block:clamp(30px,9vw,48px)!important;
  }
  :is(.sales-home,.service-sales) :is(.section-heading,.page-intro) {margin-bottom:20px!important;}
  :is(.sales-home,.service-sales) .container {padding-inline:clamp(16px,5vw,22px);}
  :is(.sales-home,.service-sales) .faq-list details {max-width:100%;}
  /* iPhone form legibility and no automatic zoom at focus. */
  :is(.sales-home,.service-sales) :is(input,textarea,select),
  body[data-tle-experience] :is(input,textarea,select),
  body[data-tle-demo] :is(input,textarea,select) {
    font-size:16px!important;
    min-width:0;
    max-width:100%;
  }
  :is(.sales-home,.service-sales) :is(button,[role="button"],a),
  body[data-tle-demo] :is(button,[role="button"],a),
  body[data-tle-experience] :is(button,[role="button"],a) {
    touch-action:manipulation;
  }
  :is(.sales-home,.service-sales,body[data-tle-demo],body[data-tle-experience])
    :is(a,button,[role="button"],input,textarea,select):focus-visible {
      outline:3px solid #4b8cb4;
      outline-offset:3px;
  }
  /* Static TLE marketing: first action, not decorative giant scenes. */
  body[data-tle-experience="bundle"] .tle-hero {
    gap:20px!important;
    padding-block:clamp(18px,6vw,32px)!important;
  }
  body[data-tle-experience="bundle"] .tle-hero-photo {
    max-height:300px;
    overflow:hidden;
    border-radius:17px;
  }
  body[data-tle-experience="bundle"] .tle-hero-photo img {max-height:300px;object-fit:cover;}
  body[data-tle-experience="trial"] .hero,
  body[data-tle-experience="app-demo"] .intro {padding-top:20px!important;}
  /* Demo editorial one-column presentation; retain each client's own identity. */
  body[data-tle-demo="casa-brownie"] .hero-copy {padding-inline:0; }
  body[data-tle-demo="casa-brownie"] .hero-copy>p,
  body[data-tle-demo="crumb"] .hero-editorial-content p,
  body[data-tle-demo="aftr"] .hero-content>p {font-size:16px!important;line-height:1.55!important;}
  body[data-tle-demo="casa-brownie"] .flavor-grid,
  body[data-tle-demo="crumb"] .cookie-grid,
  body[data-tle-demo="aftr"] :is(.vip-grid,.offer-grid) {gap:15px!important;}
  body[data-tle-demo="casa-brownie"] .flavor-grid>*,
  body[data-tle-demo="crumb"] .cookie-grid>*,
  body[data-tle-demo="aftr"] :is(.vip-grid,.offer-grid)>* {
    min-width:0;max-width:100%;width:100%;
  }
  body[data-tle-demo="aftr"] .hero h1 {font-size:clamp(50px,14.5vw,70px)!important;line-height:.95!important;}
  body[data-tle-demo="aftr"] .hero-cta {flex-direction:column;align-items:stretch;gap:10px;}
  body[data-tle-demo="aftr"] .hero-cta>* {max-width:100%;}
  body[data-tle-demo="crumb"] .hero-editorial-content h2 {
    font-size:clamp(35px,10vw,46px)!important;
    line-height:1.08!important;
    overflow-wrap:break-word;
  }
  body[data-tle-demo="claudia"] .buttons,
  body[data-tle-demo="angela"] .nextActions {flex-wrap:wrap;gap:10px;}
  body[data-tle-demo="claudia"] .buttons .primary,
  body[data-tle-demo="angela"] .nextActions .primaryLink {width:100%;min-height:50px!important;}
  body[data-tle-demo="angela"] :is(.serviceChoice,.card),
  body[data-tle-demo="claudia"] .panel {min-height:0;max-width:100%;}
  /* Do not allow media or decorative transitions to create horizontal scroll. */
  body[data-tle-demo] :is(img,video),
  body[data-tle-experience] :is(img,video) {max-width:100%;}
  body[data-tle-demo] :is(.section,.hero,.hero-editorial),
  body[data-tle-experience] :is(.hero,.tle-hero,.intro) {max-width:100%;}
}
@media(max-width:390px){
  body[data-tle-demo="aftr"] .hero h1 {font-size:clamp(48px,13.8vw,59px)!important;}
  :is(.sales-home,.service-sales) .section-heading h2 {font-size:clamp(29px,8.5vw,34px)!important;}
  body[data-tle-experience="bundle"] .tle-hero-copy h1 {font-size:clamp(30px,8.8vw,36px)!important;}
}

/* Compact mobile service tiles keep real reading size even at 375px. */
@media(max-width:767px){
 .sales-home .solutions-section .tle-service-static p,
 .solutions-section .tle-service-static p {
   font-size:16px!important;
   line-height:1.4!important;
 }
 .sales-home .solutions-section .tle-service-static h3,
 .solutions-section .tle-service-static h3 {
   font-size:17px!important;
   line-height:1.26!important;
 }
 .sales-home .solutions-section .tle-service-static__cta,
 .solutions-section .tle-service-static__cta {
   display:inline-flex;
   align-items:center;
   min-height:44px;
   font-size:14px;
 }
}

/* First five seconds: readable explanation and action BEFORE the hero photograph. */
@media(max-width:767px){
  .sales-home .hero-scroll .hero-scroll-frame.hero-split {
    display:flex!important;
    flex-direction:column!important;
    padding-top:16px!important;
    gap:20px!important;
  }
  .sales-home .hero-scroll .hero-scroll-frame.hero-split .hero-intro {
    order:-1!important;
    padding:0 5px!important;
    margin:0 auto!important;
  }
  .sales-home .hero-scroll .hero-scroll-frame.hero-split .hero-split-visual {
    order:0!important;
    height:clamp(250px,65vw,335px)!important;
    min-height:0!important;
    margin:0!important;
  }
  .sales-home .hero-scroll .hero-scroll-frame.hero-split .hero-intro .hero-cta-row {
    margin-top:16px!important;
  }
  body[data-tle-demo="crumb"] .hero.hero-editorial {
    display:flex!important;
    flex-direction:column!important;
    height:auto!important;
    min-height:0!important;
    overflow:visible!important;
  }
  body[data-tle-demo="crumb"] .hero.hero-editorial .hero-editorial-content {
    order:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    padding:19px 21px 22px!important;
    text-align:left!important;
    min-height:0!important;
    max-width:100%!important;
  }
  body[data-tle-demo="crumb"] .hero.hero-editorial .hero-editorial-content h2,
  body[data-tle-demo="crumb"] .hero.hero-editorial .hero-editorial-content p {
    margin-left:0!important;
    margin-right:0!important;
    text-align:left!important;
    max-width:100%!important;
  }
  body[data-tle-demo="crumb"] .hero.hero-editorial .hero-editorial-cta {
    margin:0!important;
    width:100%!important;
    max-width:100%!important;
  }
  body[data-tle-demo="crumb"] .hero.hero-editorial picture {
    order:1!important;
    display:block!important;
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:300px!important;
    max-height:300px!important;
    margin:0!important;
    overflow:hidden!important;
    background:#e7f2fa;
  }
  body[data-tle-demo="crumb"] .hero.hero-editorial picture img {
    width:100%!important;
    max-width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  /* Actual conversion actions for Cleaning App and Free Lead Tracker. */
  .tle-app-landing .tle-app-hero-grid {grid-template-columns:minmax(0,1fr)!important;}
  .tle-app-landing .tle-app-actions {display:flex;flex-direction:column;align-items:stretch;gap:10px;}
  .tle-app-landing .tle-app-btn.primary,
  .tle-freebie-page a[href="#freebie-form"] {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px!important;
    width:100%;
    max-width:100%;
    font-size:16px!important;
    text-align:center;
    white-space:normal;
  }
  .tle-app-landing .tle-app-btn.secondary {
    display:inline-flex;align-items:center;justify-content:center;
    min-height:48px;
    font-size:15px;
    background:transparent;
    box-shadow:none;
  }
  /* Standalone explanatory pages get a primary action at the top. */
  .page-intro .page-intro-cta {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:52px;
    margin-top:18px;
    padding:13px 20px;
    background:#191919;
    color:#fff;
    border-radius:14px;
    font:700 16px/1.3 'Prompt','DM Sans',Arial,sans-serif;
    text-decoration:none;
    text-align:center;
  }
}
@media(min-width:768px){
  .page-intro .page-intro-cta{
    display:inline-flex;align-items:center;justify-content:center;
    min-height:50px;margin-top:23px;padding:13px 25px;
    border-radius:999px;background:#191919;color:white;text-decoration:none;
    font:650 15px/1.3 'Prompt','DM Sans',sans-serif;
  }
}
.page-intro .page-intro-cta:focus-visible{outline:3px solid #4B8CB4;outline-offset:4px;}

/* Consent stays fully opt-in and equally actionable, but the small-phone
   drawer no longer masks the hero. All explanatory copy remains visible. */
@media(max-width:767px){
  body .privacy-notice {
    left:8px!important;
    right:8px!important;
    bottom:max(8px,env(safe-area-inset-bottom))!important;
    width:calc(100vw - 16px)!important;
    max-width:410px;
    max-height:32svh;
    box-sizing:border-box;
    overflow-y:auto;
    padding:10px 12px!important;
    border-radius:14px!important;
    box-shadow:0 6px 22px rgba(25,25,25,.13)!important;
  }
  body .privacy-notice h2 {
    font:700 14px/1.2 system-ui,sans-serif!important;
    margin:0 0 4px!important;
  }
  body .privacy-notice p {
    font:400 12px/1.34 system-ui,sans-serif!important;
    margin:0 0 7px!important;
  }
  body .privacy-notice .privacy-actions {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px!important;
    flex-wrap:nowrap!important;
  }
  body .privacy-notice .privacy-actions button {
    width:100%;
    min-width:0!important;
    min-height:44px!important;
    padding:7px 6px!important;
    font:650 12px/1.2 system-ui,sans-serif!important;
    border-radius:10px!important;
  }
  body .privacy-notice > a {
    display:inline-block;
    margin-top:5px!important;
    font:500 11px/1.2 system-ui,sans-serif!important;
    text-underline-offset:2px;
  }
}

/* Override older deeply nested sales copy rules at every 320–767px width.
   Body copy in a service choice must never collapse to the legacy 12px. */
@media(max-width:767px){
 html body :is(#solutions,#soluciones,.solutions-section)
 .service-grid article.tle-service-static a.tle-service-static__link > p {
   font-size:16px!important;
   line-height:1.43!important;
   letter-spacing:normal!important;
   overflow-wrap:break-word;
 }
}


/* Experience Cleaning — 2026-11-07 mobile booking usability */
@media(max-width:767px){
 body[data-tle-experience="cleaning"]{max-width:100%;overflow-x:clip}
 body[data-tle-experience="cleaning"] .hero.hero-cleaning-site h1{font-size:clamp(38px,9.4vw,53px)!important;line-height:1.11!important;text-wrap:balance}
 body[data-tle-experience="cleaning"] .hero-intro{font-size:16px!important;line-height:1.6!important}
 body[data-tle-experience="cleaning"] :is(.experience-frame,.form-panel,.owner-dashboard,.request-preview,.stage,.stage-heading,.service-grid){min-width:0;max-width:100%}
 body[data-tle-experience="cleaning"] :is(.service-grid,#commercial-service-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body[data-tle-experience="cleaning"] .service-card{min-width:0}
 body[data-tle-experience="cleaning"] .service-card strong{font-size:clamp(13px,3.6vw,16px)!important;line-height:1.35}
 body[data-tle-experience="cleaning"] .service-card small{font-size:12px!important;line-height:1.4}
 body[data-tle-experience="cleaning"] :is(.booking-category-tab,.service-card,.time-options label,.extras label){min-height:44px;touch-action:manipulation}
 body[data-tle-experience="cleaning"] .booking-category-tab{min-height:51px}
 body[data-tle-experience="cleaning"] .steps{overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:thin}
 body[data-tle-experience="cleaning"] .steps .step{flex-shrink:0;min-width:0}
 body[data-tle-experience="cleaning"] :is(.two-fields,.date-selector,.time-options){min-width:0;max-width:100%}
 body[data-tle-experience="cleaning"] :is(input,select,textarea){font-size:16px!important;min-width:0;max-width:100%;box-sizing:border-box}
 body[data-tle-experience="cleaning"] .form-actions :is(.button,button){min-height:48px;max-width:100%;white-space:normal}
 body[data-tle-experience="cleaning"] :is(.service-card,.booking-category-tab,button,a,input,select,textarea):focus-visible{outline:3px solid #477bb3;outline-offset:3px}
}
@media(max-width:350px){
 body[data-tle-experience="cleaning"] .hero.hero-cleaning-site h1{font-size:37px!important}
 body[data-tle-experience="cleaning"] .service-grid{gap:8px}
 body[data-tle-experience="cleaning"] .form-panel{padding-inline:0}
}
@media(prefers-reduced-motion:reduce){
 body[data-tle-experience="cleaning"] :is(.hero-full-photo,.intro-band-track,.service-card,.booking-category-tab){animation:none!important;transition:none!important}
}
