/* Responsive refinements shared by the WordPress theme and hosted preview. */
:where(.hero-grid,.about-grid,.pricing-grid,.service-grid,.journey-grid,.tools-banner,.community-grid,.blog-grid,.faq-grid,.page-hero-grid,.split-content,.three-grid,.two-grid,.service-detail,.calculator-grid,.form-layout,.contact-grid,.auth-grid,.portal-grid,.studio-grid,.field-grid,.calendar-grid,.footer-grid)>*{min-width:0}
:where(input,select,textarea){min-width:0;max-width:100%}
:where(h1,h2,h3,p,.note,.badge,.document-list,.form-status,.ai-output){overflow-wrap:break-word}
.document-list a,.ai-output,.portal-header strong{overflow-wrap:anywhere}
.mobile-nav-cta{display:none!important}
.proof-stamp,.mini-symbol,.tool-icon{flex-shrink:0}
.proof-stamp [data-tdc-count]{position:static;font-size:28px;line-height:1.1}
.tool-links a>div{min-width:0}
.button{max-width:100%;text-align:center}
.modal-backdrop{overflow-y:auto;overscroll-behavior:contain}
.modal{width:100%;min-width:0;max-height:calc(100vh - 40px);max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain}
.modal .close{width:44px;height:44px;line-height:1;color:var(--ink)}
.modal .confirm-pay{width:100%}
html.tdc-checkout-open,html.tdc-sale-open{overflow:hidden;overscroll-behavior:none}

@media(max-width:1000px){
  html{scroll-padding-top:88px}
  .container{width:calc(100% - 40px);max-width:calc(100% - max(20px,env(safe-area-inset-left)) - max(20px,env(safe-area-inset-right)))}
  input,select,textarea{font-size:16px}
  .header-inner{height:76px;gap:16px}
  .brand{min-width:0;flex-shrink:1}
  .brand img{flex-shrink:0}
  .header-actions{margin-left:auto;gap:10px;flex-shrink:0}
  .header-actions .button{display:none}
  .account-link{display:inline-flex;align-items:center;min-height:44px}
  .mobile-toggle{display:grid;place-content:center;width:44px;height:44px;flex-shrink:0;padding:0;line-height:1}
  .desktop-nav{display:none;position:absolute;top:100%;left:0;right:0;margin:0;padding:12px max(20px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(20px,env(safe-area-inset-left));max-height:calc(100vh - 76px);max-height:calc(100dvh - 76px);overflow-y:auto;overscroll-behavior:contain;background:#fff;box-shadow:0 14px 24px #20362920;border-top:1px solid var(--line)}
  .desktop-nav.is-open{display:block}
  .desktop-nav>a,.nav-dropdown>button{display:flex;align-items:center;justify-content:space-between;min-height:48px;width:100%;padding:12px;text-align:left;font-size:15px}
  .desktop-nav>a+.nav-dropdown,.nav-dropdown+.nav-dropdown{border-top:1px solid #edf0e5}
  .nav-dropdown .dropdown-panel{position:static;width:auto;max-width:100%;padding:5px;margin:0 0 8px 12px;border-radius:8px;box-shadow:none}
  .nav-dropdown:hover .dropdown-panel,.nav-dropdown:focus-within .dropdown-panel{display:none}
  .nav-dropdown.is-open .dropdown-panel{display:block}
  .dropdown-panel a{min-height:44px;padding:11px 12px;font-size:14px}
  .desktop-nav .mobile-nav-cta{display:flex!important;margin-top:12px;background:var(--green);color:#fff;border-radius:8px;justify-content:center;gap:12px;text-align:center}
  .hero-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}
  .hero-copy h1{font-size:clamp(48px,6.5vw,65px)}
  .hero-visual{height:560px;min-width:0}
  .hero-model{width:min(360px,110%);height:560px;left:50%;bottom:-15px;transform:translateX(-50%)}
  .hero-orbit{width:min(100%,360px);height:auto;aspect-ratio:1;left:50%;top:120px;transform:translateX(-50%)}
  .hero-visual .card-one{left:0!important;top:220px!important}
  .hero-visual .card-two{right:0;bottom:65px}
  .orbit-word{left:20px;top:85px}
  .section{padding-top:64px;padding-bottom:64px}
  .calculator-grid,.studio-grid,.auth-grid{grid-template-columns:minmax(0,1fr);gap:24px}
  .review-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:760px){
  .hero-grid{grid-template-columns:minmax(0,1fr);gap:0;min-height:0}
  .hero-copy{padding:38px 0 8px;max-width:560px}
  .hero-copy h1{font-size:clamp(46px,9vw,62px);line-height:1.05}
  .hero-copy>p{font-size:16px;line-height:1.65;margin-bottom:24px}
  .hero-copy .eyebrow{margin-bottom:18px}
  .hero-copy .button{min-height:48px;font-size:14px;gap:12px;padding:12px 18px}
  .hero-proof{margin-top:24px;gap:12px}
  .hero-visual{height:425px;width:100%;max-width:390px;justify-self:center}
  .hero-orbit{width:min(84%,310px);top:70px}
  .hero-model{width:min(100%,310px);height:465px;bottom:-34px}
  .hero-visual .card-one{top:155px!important}
  .hero-visual .card-two{bottom:35px}
  .floating-card{max-width:175px;padding:11px 12px;gap:8px}
  .floating-card strong{font-size:11px}
  .floating-card small{font-size:10px;line-height:1.5;display:block}
  .orbit-word{top:36px;left:50%;transform:translateX(-50%) rotate(9deg);white-space:nowrap;font-size:9px}
  .spark-one{top:85px;right:18px;font-size:36px}
  .spark-two{bottom:60px;font-size:34px}
  .about-grid,.tools-banner,.community-grid,.faq-grid,.split-content,.service-detail,.form-layout{grid-template-columns:minmax(0,1fr);gap:30px}
  .page-hero-grid{grid-template-columns:minmax(0,1fr);min-height:0;padding-bottom:32px;gap:0}
  .page-portrait{display:none}
  .page-hero h1{font-size:clamp(36px,7.5vw,48px);margin-top:10px}
  .page-hero .eyebrow{margin-top:16px}
  .page-hero .lead{font-size:16px;margin-bottom:0}
  .breadcrumbs{flex-wrap:wrap;gap:7px 10px;line-height:1.6}
  .community-mark{max-width:100%;width:270px;height:auto;aspect-ratio:1}
  .cta-banner{padding:30px;flex-direction:column;align-items:flex-start;margin-bottom:56px}
  .inline-callout{flex-direction:column;align-items:flex-start;gap:20px}
  .portal-header{flex-direction:column;align-items:flex-start;padding:24px}
  .region-links{gap:10px}
  .region-links a{padding:14px 10px;font-size:14px;gap:6px}
}

@media(max-width:680px){
  .container{width:calc(100% - 32px);max-width:calc(100% - max(16px,env(safe-area-inset-left)) - max(16px,env(safe-area-inset-right)))}
  .section{padding-top:48px;padding-bottom:48px}
  .service-grid,.pricing-grid,.journey-grid,.blog-grid,.two-grid,.three-grid,.contact-grid,.portal-grid,.review-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .service-card,.price-card,.feature-card,.contact-card,.portal-panel,.review-card{padding:24px}
  .price-card.featured{padding:23px}
  .price-card h3{font-size:30px}
  .price strong{font-size:42px;overflow-wrap:anywhere}
  .price-card .check-list li{font-size:14px;margin-bottom:12px}
  .price-card .button{min-height:48px}
  .plan-tag{max-width:100%;margin-bottom:20px}
  .region-links{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:24px}
  .region-links a{flex-direction:column;justify-content:center;padding:12px 4px;min-height:68px;font-size:13px;line-height:1.4;text-align:center}
  .region-links strong{font-size:11px;letter-spacing:.06em}
  .market-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .market-tabs button{min-width:0;min-height:48px;padding:9px 4px;font-size:12px;line-height:1.5}
  .section-heading h2,.section-dark h2{font-size:clamp(32px,8vw,39px)}
  .section-heading{margin-bottom:28px}
  .lead,.prose{font-size:16px}
  .button{min-height:48px;font-size:14px;padding:12px 18px;gap:12px}
  .button-row{gap:10px}
  .tool-form,.account-card,.result-panel{padding:24px}
  .tool-form h2,.account-card h2{font-size:30px}
  .tool-form .button,.account-card .button,.portal-panel>.button{width:100%}
  .field-grid{grid-template-columns:minmax(0,1fr);gap:0}
  input,select,textarea{font-size:16px;min-height:48px;padding:12px;line-height:1.5}
  input[type=checkbox]{min-height:20px;width:20px;height:20px;margin-top:2px}
  .checkbox-label{font-size:13px;line-height:1.6;gap:8px}
  .checkbox-label input{margin-left:0;margin-right:0}
  .calendar-grid{grid-template-columns:minmax(0,1fr)}
  .slot-button{min-height:48px;font-size:14px;line-height:1.5;text-align:left;overflow-wrap:anywhere}
  .result-panel{min-height:0}
  .result-number{font-size:72px}
  .ai-output{padding:24px;min-height:180px}
  .guarantee-panel{padding:20px;gap:13px;align-items:flex-start}
  .guarantee-panel h3{font-size:21px}
  .offer-bar{flex-direction:column;gap:8px;padding:18px;line-height:1.6}
  .tool-links a{gap:12px}
  .tool-links h3{font-size:19px}
  .tool-links .tool-icon{width:42px;height:42px;line-height:42px}
  .review-invitation{padding:28px 20px}
  .cta-banner{padding:25px}
  .cta-banner h2{font-size:32px}
  .cta-banner .button,.inline-callout .button{width:100%}
  .section-footer{flex-direction:column;gap:16px}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 16px}
  .footer-grid>div:first-child,.footer-grid>div:last-child{grid-column:1/-1}
  .footer-grid h3{margin-bottom:12px}
  .footer-grid a:not(.brand){font-size:14px;line-height:1.5;padding:8px 0;min-height:40px;margin-bottom:2px;overflow-wrap:anywhere}
  .site-footer{padding-top:45px}
  .footer-bottom{flex-direction:column;gap:15px;font-size:12px;padding-bottom:calc(24px + env(safe-area-inset-bottom))}
  .footer-bottom>div{gap:6px 16px}
  .footer-bottom>div>a,.footer-bottom button{display:inline-flex;align-items:center;min-height:44px;font-size:12px}
  .whatsapp-button{width:48px;height:48px;right:max(16px,env(safe-area-inset-right));bottom:calc(16px + env(safe-area-inset-bottom))}
  body.tdc-consent-open .whatsapp-button{visibility:hidden;pointer-events:none}
  .consent-banner{left:16px;right:16px;bottom:calc(12px + env(safe-area-inset-bottom));width:auto;max-width:none;padding:18px;max-height:calc(100vh - 100px);max-height:calc(100dvh - 100px);overflow-y:auto;overscroll-behavior:contain}
  .consent-banner p{font-size:13px;line-height:1.6}
  .consent-banner .button-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}
  .consent-banner .button{font-size:12px;min-height:44px;padding:10px 8px}
  .modal-backdrop{padding:12px;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
  .modal{padding:24px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-bottom));border-radius:12px}
  .modal h2{font-size:30px;clear:both}
  .modal .close{position:sticky;float:right;top:0;right:auto;margin:-12px -12px 0 0;background:#fff;border-radius:50%;z-index:1}
  .modal .eyebrow{padding-top:8px;margin-bottom:18px}
  .modal p{line-height:1.6}
  .post-navigation{flex-direction:column;gap:18px}
  .blog-post-title{font-size:36px}
  .preview-note{font-size:11px;padding:8px 16px;line-height:1.6}
  .preview-note a{display:inline-flex;align-items:center;min-height:32px}
}

@media(max-width:480px){
  .header-inner{height:68px;gap:10px}
  .brand{gap:7px}
  .brand img{width:36px;height:36px}
  .brand strong{font-size:21px}
  .site-header .brand small{display:none}
  .header-actions{gap:8px;font-size:12px}
  .desktop-nav{max-height:calc(100vh - 68px);max-height:calc(100dvh - 68px)}
  .topbar .container{font-size:10px;line-height:1.6}
  .hero-copy h1{font-size:clamp(43px,11.7vw,56px)}
  .hero-copy .button-row{display:grid;grid-template-columns:minmax(0,1fr)}
  .hero-copy .button-row .button{width:100%}
  .hero-proof strong{font-size:13px;line-height:1.5}
  .hero-proof div>span{line-height:1.5}
  .hero-visual{height:375px;max-width:340px}
  .hero-model{width:min(100%,285px);height:425px;bottom:-34px}
  .hero-orbit{top:60px;width:84%}
  .hero-visual .card-one{top:140px!important}
  .hero-visual .card-two{bottom:29px}
  .floating-card{max-width:157px;padding:10px;gap:7px}
  .mini-symbol{width:26px;height:26px;font-size:18px}
  .floating-card strong{font-size:10px}
  .floating-card small{font-size:9px}
  .orbit-word{top:27px}
  .promise-strip .container{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:18px 0;font-size:12px;justify-items:center}
  .about-visual{width:90%;max-width:330px}
  .image-arch{height:360px}
  .image-arch img{width:310px;height:465px;bottom:-80px}
  .round-stamp{right:-10px;width:95px;height:95px}
  .page-hero h1{font-size:clamp(34px,9vw,42px)}
  .tool-form,.account-card,.result-panel,.portal-panel,.contact-card{padding:20px}
}

@media(max-height:500px) and (max-width:1000px){
  .modal-backdrop{align-items:start;padding:10px}
  .modal{max-height:calc(100vh - 20px);max-height:calc(100dvh - 20px);padding:20px}
  .modal h2{font-size:27px;margin-bottom:14px}
}

@media(hover:none){
  .button:hover,.service-card:hover{transform:none}
}
