/* Viewport fit, 2026-10-29. On laptop-height desktop screens (e.g. 1440×~680
   visible) the service sections ran 920–1,130px: fixed 110px section padding,
   a 70px headline and a 510px+ demo panel. Below 960px of viewport height,
   spacing, headlines and demo internals scale with the height instead, so each
   section fits on one screen. Tall screens and mobile are untouched.
   Type and section spacing scale through token overrides (type-system.css
   consumes them); the rules below the :root block are layout tweaks for the
   densest sections and the mock-UI internals. Loaded after type-system.css. */
@media (min-width:1001px) and (max-height:960px){
  :root{
    --section-y:clamp(48px,8vh,96px);
    /* brand min/max kept; only the fluid middle follows viewport height */
    --fs-display-s:clamp(30px,min(3.4vw,5.4vh),48px);
    --fs-display-m:clamp(48px,min(7vw,11vh),88px);
    --fs-lead:clamp(15px,2.2vh,18px);
    --heading-gap:var(--sp-6);
  }
  .service-copy h2{margin-bottom:clamp(14px,2.6vh,26px)}
  .service-price{margin:clamp(12px,2.4vh,25px) 0!important}
  .service-copy .primary{margin-top:clamp(6px,1.4vh,18px)}
  .service-caption{margin-top:clamp(10px,1.8vh,20px)}

  .service-heading{margin:clamp(24px,4vh,55px) 0 clamp(28px,5vh,70px)}

  /* SEO + AI search: chat previews */
  .service-switch{margin-bottom:clamp(10px,1.8vh,22px)}
  .service-switch button{padding:8px 18px}
  /* Reserve the finished answer's height so the panel doesn't grow while the
     answer streams in (the original fixed 510px did this for tall screens). */
  .native-chat{min-height:clamp(420px,70vh,510px)}
  .native-toolbar{padding:12px 20px}
  .native-chat-body{padding:clamp(14px,2.6vh,28px) 22px}
  .native-response{padding-top:clamp(12px,2.2vh,27px);min-height:clamp(180px,30vh,260px)}
  .native-answer-text{min-height:clamp(80px,13vh,115px);line-height:1.65}
  .native-source{margin-top:12px;padding:11px 15px}
  .native-tools{margin-top:10px}
  .native-composer{margin:0 18px 16px;padding:10px 16px}
  .native-composer>div{margin-top:6px}
  .search-example{min-height:0}

  /* Paid ads: ad previews */
  .native-ad-creative{min-height:clamp(170px,30vh,290px);padding:clamp(18px,3vh,30px)}
  .native-ad-creative h3{font-size:clamp(28px,4.6vh,38px);margin:clamp(14px,3vh,35px) 0 clamp(10px,2vh,20px)}
  .native-vertical .native-ad-creative{min-height:clamp(220px,38vh,380px)}
  .native-vertical .native-ad-creative h3{margin-top:clamp(28px,6vh,70px)}
  .vertical-actions{top:clamp(110px,20vh,180px)}
  .native-google-ad{min-height:0}
  .agent-route{margin-top:clamp(12px,2.4vh,26px)}

  /* Delivery console */
  .delivery-body{min-height:0}
  .delivery-panel{padding:clamp(24px,4.5vh,45px) 44px}

  /* Sections inside .agency-rest carry their own 110px padding */

  /* Paid ads: feed ad chrome */
  .native-ad-platform{padding:10px 16px;font-size:15px}
  .native-ad-account{padding:9px 16px}
  .native-ad-copy{padding:0 16px 9px}
  .native-ad-cta{padding:9px 15px}
  .native-ad-footer{padding:6px 16px;font-size:15px}
  .native-ad-creative{min-height:0}
  .native-ad-creative p{margin:0}
  .creative-rule{margin:clamp(10px,2vh,20px) 0}

  /* Delivery console */
  .delivery-tabs{padding:clamp(14px,2.6vh,25px)}
  .console-top,.console-bottom{padding-top:clamp(12px,2vh,22px);padding-bottom:clamp(12px,2vh,22px)}

  /* Lead form */
  .lead-section form{padding:clamp(18px,3vh,30px)}
  .lead-section label{margin-bottom:clamp(10px,1.8vh,18px)}
  .lead-section input,.lead-section select,.lead-section textarea{padding:clamp(9px,1.5vh,13px) 12px;margin-top:6px}
  .lead-section textarea{height:clamp(64px,11vh,120px);min-height:0}

  /* Closing section */
  .closing-star{font-size:clamp(36px,6vh,60px);margin-bottom:clamp(12px,2.4vh,30px)}
  .agency-close>div{margin:clamp(20px,4vh,40px) 0 clamp(16px,3vh,30px)}

  /* Second pass: the three densest sections */
  .offer-controls{margin-bottom:clamp(14px,2.4vh,55px)}
  .native-ad-creative{padding:clamp(16px,2.6vh,30px)}
  .native-ad-creative h3{font-size:clamp(24px,4vh,38px);margin:clamp(10px,2vh,35px) 0 clamp(8px,1.4vh,20px)}
}
